/* TEKTOLOGY - redesign stylesheet (2026-08).
   Shared by index.html and the interior pages. Served from this origin only;
   fonts and Font Awesome are vendored under assets/fonts/. */

/* ---------- tokens ---------- */
:root {
  --navy-900: #0a2540;
  --navy-800: #0d2c4c;
  --navy-700: #14395f;
  --ink:      #0b1b2b;
  --slate:    #55677b;
  --slate-2:  #6f8194;
  --line:     #e4eaf1;
  --bg:       #ffffff;
  --bg-alt:   #f4f8fd;
  --blue:     #2563eb;
  --blue-600: #1d4ed8;
  --blue-050: #eef4ff;
  --peri:     #8a8fe0;   /* periwinkle pulled from the logo's accent circles */
  --peri-050: #eef0fc;
  --radius:   18px;
  --radius-sm:12px;
  --shadow-sm: 0 1px 2px rgba(10,37,64,.06), 0 2px 8px rgba(10,37,64,.05);
  --shadow-md: 0 8px 24px rgba(10,37,64,.08), 0 2px 6px rgba(10,37,64,.05);
  --shadow-lg: 0 24px 60px rgba(10,37,64,.14);
  --container: 1120px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; font-weight: 700; color: var(--ink); }
::selection { background: var(--peri); color: #fff; }

/* ---------- layout helpers ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section--alt { background: var(--bg-alt); }
.section--tight { padding: 72px 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--blue);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--peri); border-radius: 2px; }
.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head h2 { font-size: clamp(1.9rem, 3.2vw, 2.7rem); margin: 18px 0 14px; }
.section-head p { color: var(--slate); font-size: 1.075rem; }
.center { text-align: center; margin-left: auto; margin-right: auto; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font: inherit; font-weight: 600; font-size: .98rem;
  padding: 13px 24px; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .18s var(--ease), border-color .18s var(--ease);
}
.btn i { font-size: .85em; transition: transform .18s var(--ease); }
.btn--primary { background: var(--blue); color: #fff; box-shadow: 0 8px 20px rgba(37,99,235,.28); }
.btn--primary:hover { background: var(--blue-600); transform: translateY(-2px); box-shadow: 0 12px 28px rgba(37,99,235,.34); }
.btn--primary:hover i { transform: translateX(3px); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--peri); background: var(--peri-050); }
.btn--light { background: #fff; color: var(--navy-900); }
.btn--light:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn--onnavy { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.22); }
.btn--onnavy:hover { background: rgba(255,255,255,.16); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.8); backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: var(--shadow-sm); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 700; font-size: 1.15rem; letter-spacing: -0.01em; }
.brand img { width: 34px; height: 34px; }
.nav { display: flex; align-items: center; gap: 34px; }
.nav a.nav-link {
  font-size: .95rem; font-weight: 500; color: var(--slate);
  position: relative; padding: 6px 0; transition: color .18s;
}
.nav a.nav-link::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px;
  background: var(--blue); border-radius: 2px; transition: right .22s var(--ease);
}
.nav a.nav-link:hover { color: var(--ink); }
.nav a.nav-link:hover::after { right: 0; }
.nav-cta { margin-left: 6px; }
.nav-toggle { display: none; background: none; border: 0; color: var(--ink); font-size: 1.4rem; cursor: pointer; padding: 6px; }

@media (max-width: 860px) {
  .nav {
    position: fixed; inset: 74px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 8px 24px 20px; box-shadow: var(--shadow-md);
    transform: translateY(-140%); transition: transform .3s var(--ease); pointer-events: none;
  }
  .nav.is-open { transform: translateY(0); pointer-events: auto; }
  .nav a.nav-link { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .nav a.nav-link::after { display: none; }
  .nav-cta { margin: 16px 0 0; justify-content: center; }
  .nav-toggle { display: block; }
}

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 500px at 82% -10%, rgba(138,143,224,.45), transparent 60%),
    radial-gradient(700px 500px at 0% 110%, rgba(37,99,235,.35), transparent 55%),
    linear-gradient(160deg, var(--navy-900), var(--navy-700));
  color: #eaf1fb;
}
.hero::before {   /* faint dot grid */
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.09) 1px, transparent 1px);
  background-size: 32px 32px; mask-image: linear-gradient(to bottom, #000 30%, transparent 92%);
}
.hero__globe {
  position: absolute; right: -70px; top: 44%; transform: translateY(-50%);
  width: 440px; opacity: .09; filter: grayscale(1) brightness(3);
  clip-path: inset(0 0 21% 0);   /* drop the wordmark, keep the globe */
  pointer-events: none; user-select: none;
}
@media (max-width: 820px) { .hero__globe { display: none; } }
.hero .container { position: relative; padding-top: 104px; padding-bottom: 112px; }
.hero__inner { max-width: 720px; }
.hero .eyebrow { color: #c3cdfb; }
.hero .eyebrow::before { background: var(--peri); }
.hero h1 {
  color: #fff; font-size: clamp(2.6rem, 5.4vw, 4.1rem); font-weight: 700;
  letter-spacing: -0.035em; margin: 20px 0 22px;
}
.hero h1 .accent { color: var(--peri); }
.hero__lead { font-size: clamp(1.06rem, 1.7vw, 1.28rem); color: #c8d6e8; max-width: 620px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero__meta {
  margin-top: 44px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,.14);
  display: flex; flex-wrap: wrap; gap: 10px 28px; font-size: .92rem; color: #a9bcd4;
}
.hero__meta span { display: inline-flex; align-items: center; gap: 9px; }
.hero__meta i { color: var(--peri); }

/* ---------- marquee / capability strip ---------- */
.capstrip { background: var(--navy-900); color: #cdd9ea; }
.capstrip .container {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 40px;
  padding: 22px 24px; font-size: .9rem; font-weight: 500; letter-spacing: .02em;
}
.capstrip span { display: inline-flex; align-items: center; gap: 10px; }
.capstrip i { color: var(--peri); }

/* ---------- service cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 940px) { .cards { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; } }
.card {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 28px; box-shadow: var(--shadow-sm);
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: #d5deea; }
.card__icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(150deg, var(--blue-050), var(--peri-050));
  color: var(--blue); font-size: 1.25rem; margin-bottom: 20px;
}
.card h3 { font-size: 1.28rem; margin-bottom: 10px; }
.card > p { color: var(--slate); font-size: .99rem; margin-bottom: 18px; }
.card ul { list-style: none; display: grid; gap: 9px; }
.card li { position: relative; padding-left: 26px; font-size: .93rem; color: var(--slate-2); font-weight: 500; }
.card li::before {
  content: "\f00c"; font-family: "Font Awesome 6 Free"; font-weight: 900;
  position: absolute; left: 0; top: 1px; color: var(--peri); font-size: .78rem;
}

/* ---------- value blocks ---------- */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 940px) { .values { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; } }
.value { padding: 28px 26px; border-radius: var(--radius); background: var(--bg); border: 1px solid var(--line); }
.value i { font-size: 1.4rem; color: var(--peri); }
.value h3 { font-size: 1.15rem; margin: 16px 0 8px; }
.value p { color: var(--slate); font-size: .96rem; }

/* ---------- process ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
@media (max-width: 940px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding: 28px 22px; border-radius: var(--radius); background: var(--bg-alt); border: 1px solid var(--line); }
.section--alt .step { background: #fff; }
.step__n {
  width: 38px; height: 38px; border-radius: 999px; display: grid; place-items: center;
  background: var(--navy-900); color: #fff; font-weight: 700; font-size: .95rem; margin-bottom: 16px;
}
.step h3 { font-size: 1.08rem; margin-bottom: 7px; }
.step p { font-size: .92rem; color: var(--slate); }

/* ---------- support split ---------- */
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 34px; } }
.split__body p + p { margin-top: 16px; }
.split__body p { color: var(--slate); }
.panel {
  background: linear-gradient(160deg, var(--navy-900), var(--navy-700));
  color: #dfe8f4; border-radius: var(--radius); padding: 34px 32px; box-shadow: var(--shadow-md);
}
.panel h3 { color: #fff; font-size: 1.15rem; margin-bottom: 18px; }
.panel ul { list-style: none; display: grid; gap: 14px; }
.panel li { position: relative; padding-left: 30px; font-size: .96rem; }
.panel li i { position: absolute; left: 0; top: 3px; color: var(--peri); }

/* ---------- contact ---------- */
.contact-cta {
  position: relative; overflow: hidden; border-radius: 28px;
  background:
    radial-gradient(600px 300px at 12% 0%, rgba(138,143,224,.4), transparent 60%),
    linear-gradient(150deg, var(--navy-900), var(--navy-700));
  color: #e7eefa; padding: 64px 56px; text-align: center;
}
@media (max-width: 640px) { .contact-cta { padding: 48px 26px; } }
.contact-cta h2 { color: #fff; font-size: clamp(1.8rem, 3.4vw, 2.5rem); margin-bottom: 14px; }
.contact-cta p { color: #c5d3e6; max-width: 540px; margin: 0 auto 30px; }
.contact-cta .btn { margin: 0 6px 12px; }
.contact-cta__mail { display: block; margin-top: 10px; font-size: .92rem; color: #a7bad2; }
.contact-cta__mail a { color: #fff; border-bottom: 1px solid rgba(255,255,255,.4); }

/* ---------- footer ---------- */
.site-footer { background: var(--navy-900); color: #9fb2c9; padding: 64px 0 32px; font-size: .92rem; }
.site-footer .container { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; }
@media (max-width: 760px) { .site-footer .container { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .site-footer .container { grid-template-columns: 1fr; } }
.foot-about { max-width: 340px; }
.foot-col h4 { color: #fff; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 14px; font-weight: 600; }
.foot-col a { display: block; padding: 5px 0; transition: color .16s; }
.foot-col a:hover { color: #fff; }
.foot-bottom {
  max-width: var(--container); margin: 40px auto 0; padding: 22px 24px 0;
  border-top: 1px solid rgba(255,255,255,.1); color: #7e93ac; font-size: .86rem;
}

/* ---------- interior (text) pages ---------- */
.page-hero { background: linear-gradient(160deg, var(--navy-900), var(--navy-700)); color: #fff; padding: 72px 0 60px; }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 4vw, 3rem); }
.page-hero p { color: #c8d6e8; margin-top: 12px; }
.prose { max-width: 760px; margin: 0 auto; }
.prose p { color: var(--slate); margin-bottom: 18px; }
.prose h2 { font-size: 1.3rem; margin: 34px 0 10px; }
.prose ul { margin: 0 0 18px 22px; color: var(--slate); }
.prose a { color: var(--blue); }
.prose a:hover { text-decoration: underline; }
/* Buttons inside .prose keep their own colours; .prose a would otherwise
   repaint the label the link colour and hide it against the button fill. */
.prose a.btn { color: #fff; text-decoration: none; }
.prose a.btn--ghost { color: var(--ink); }
.prose a.btn:hover { text-decoration: none; }

/* ---------- reveal-on-scroll ---------- */
/* Purely additive: the hidden state is applied by JS (.will-reveal) only after
   it has set up the observer, and a failsafe reveals everything after a short
   delay. If JS or IntersectionObserver is unavailable, nothing is ever hidden. */
.reveal.will-reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.will-reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal.will-reveal { opacity: 1; transform: none; transition: none; } }

/* skip link */
.skip-link { position: absolute; left: -9999px; top: 0; background: #fff; color: var(--ink); padding: 10px 16px; z-index: 100; border-radius: 0 0 8px 0; }
.skip-link:focus { left: 0; }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: repeat(2, 1fr); gap: 34px 44px; }
@media (max-width: 860px) { .faq { grid-template-columns: 1fr; gap: 28px; } }
.faq h3 { font-size: 1.06rem; margin-bottom: 9px; }
.faq p { color: var(--slate); font-size: .96rem; }
.faq p + p { margin-top: 10px; }

/* ---------- utilities that replace inline style attributes ---------- */
/* A section heading one step down from .section-head h2, used where a split
   column carries the heading instead of a full-width section head. */
.h2--sm { font-size: clamp(1.8rem, 3vw, 2.5rem); margin: 16px 0 18px; }
/* The eyebrow sits on navy in the interior page hero, so it cannot use the
   blue it uses on white. */
.page-hero .eyebrow { color: #c3cdfb; }
/* Trailing call to action inside a .prose column. */
.prose .actions { margin-top: 28px; }
.split__body .actions { margin-top: 22px; }
/* An inline link that follows a block of body copy. */
.readmore { display: inline-flex; align-items: center; gap: 9px; margin-top: 20px; color: var(--blue); font-weight: 600; font-size: .96rem; }
.readmore:hover { text-decoration: underline; }
.readmore i { font-size: .8em; transition: transform .18s var(--ease); }
.readmore:hover i { transform: translateX(3px); }

/* ---------- small print note ---------- */
.note { border-left: 3px solid var(--peri); background: var(--peri-050); padding: 16px 20px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin: 24px 0; }
.note p { margin: 0; color: var(--slate); font-size: .95rem; }

/* ---------- 404 ---------- */
.errorpage { min-height: 52vh; display: grid; place-items: center; text-align: center; padding: 80px 0; }
.errorpage h1 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 14px; }
.errorpage p { color: var(--slate); max-width: 460px; margin: 0 auto 28px; }
