/* =========================================================
   Network and Application Consulting, Inc.
   Classic corporate theme — design tokens
   ========================================================= */
:root {
  /* Color */
  --navy-900: #0a1f36;
  --navy-800: #0e2a47;
  --navy-700: #16395f;
  --navy-100: #e6ecf3;
  --ink: #1c2733;
  --ink-2: #4a5663;
  --ink-3: #6b7683;
  --bg: #ffffff;
  --bg-alt: #f3f5f8;
  --line: #dfe4ea;
  --line-strong: #8792a0;
  --accent: #f0a202;
  --accent-hover: #d98f00;
  --accent-ink: #0a1f36;
  --on-dark: #ffffff;
  --on-dark-2: #c3cfdc;
  --on-dark-line: rgba(255, 255, 255, 0.14);

  /* Type */
  --font: "Libre Franklin", "Helvetica Neue", Arial, sans-serif;
  --fs-xs: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-base: 1.0625rem;
  --fs-md: 1.1875rem;
  --fs-lg: 1.375rem;
  --fs-xl: clamp(1.75rem, 1.35rem + 1.4vw, 2.375rem);
  --fs-2xl: clamp(2.25rem, 1.5rem + 3vw, 3.5rem);

  /* Space */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2rem;
  --s-7: 3rem;
  --s-8: 4.5rem;
  --s-9: 6.5rem;

  /* Shape & motion */
  --radius: 4px;
  --shadow-sm: 0 1px 2px rgba(10, 31, 54, 0.06), 0 1px 1px rgba(10, 31, 54, 0.04);
  --shadow-md: 0 8px 24px rgba(10, 31, 54, 0.10);
  --dur: 150ms;
  --ease: cubic-bezier(0.2, 0, 0, 1);

  --container: 1200px;
  --header-h: 76px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0; font-family: var(--font); font-size: var(--fs-base); line-height: 1.65;
  color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased;
}
img, svg, iframe { display: block; max-width: 100%; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.25; color: var(--navy-800); letter-spacing: -0.01em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--s-5); }
.tnum { font-variant-numeric: tabular-nums; }
.skip-link { position: absolute; left: var(--s-4); top: -100px; z-index: 200; background: var(--navy-800); color: #fff; padding: var(--s-2) var(--s-4); }
.skip-link:focus { top: var(--s-4); }

/* ---------- Top bar ---------- */
.topbar { background: var(--navy-900); color: var(--on-dark-2); font-size: var(--fs-xs); }
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: var(--s-5); min-height: 40px; }
.topbar ul { list-style: none; display: flex; gap: var(--s-6); }
.topbar li { display: inline-flex; align-items: center; gap: var(--s-2); }
.topbar svg { width: 14px; height: 14px; color: var(--accent); flex: none; }
.topbar a { transition: color var(--dur) var(--ease); }
@media (hover: hover) { .topbar a:hover { color: #fff; } }
@media (max-width: 760px) { .topbar .hide-sm { display: none; } .topbar .container { justify-content: center; } }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: var(--s-5); }
.brand { display: inline-flex; align-items: center; gap: var(--s-3); min-height: 44px; }
.brand-mark { width: 42px; height: 42px; flex: none; }
.brand-name { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name strong { font-size: 1.0625rem; font-weight: 800; color: var(--navy-800); letter-spacing: -0.01em; }
.brand-name span { font-size: 0.75rem; font-weight: 600; color: var(--ink-3); letter-spacing: 0.14em; text-transform: uppercase; }

.nav { display: flex; align-items: center; gap: var(--s-1); }
.nav a:not(.btn) {
  position: relative; font-size: var(--fs-sm); font-weight: 600; color: var(--ink);
  padding: var(--s-2) var(--s-3); transition: color var(--dur) var(--ease);
}
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: var(--s-3); right: var(--s-3); bottom: 2px; height: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform var(--dur) var(--ease);
}
.nav .btn { margin-left: var(--s-4); }
.nav-toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line-strong); background: #fff; color: var(--navy-800);
  border-radius: var(--radius); cursor: pointer; align-items: center; justify-content: center;
  transition: background-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.nav-toggle:active { transform: scale(0.98); }
.nav-toggle svg { width: 22px; height: 22px; }
@media (hover: hover) {
  .nav a:not(.btn):hover { color: var(--navy-700); }
  .nav a:not(.btn):hover::after { transform: scaleX(1); }
  .nav-toggle:hover { background: var(--bg-alt); }
}
@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md); padding: var(--s-2) var(--s-5) var(--s-5);
  }
  .nav.is-open { display: flex; }
  .nav a:not(.btn) { padding: var(--s-3) 0; min-height: 48px; display: flex; align-items: center; border-bottom: 1px solid var(--line); }
  .nav a:not(.btn)::after { display: none; }
  .nav .btn { margin: var(--s-4) 0 0; justify-content: center; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: 48px; padding: 0 var(--s-6); font: inherit; font-size: var(--fs-sm); font-weight: 700; letter-spacing: 0.01em;
  border-radius: var(--radius); border: 2px solid transparent; cursor: pointer;
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.btn:active { transform: scale(0.98); }
.btn svg { width: 16px; height: 16px; }
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-navy { background: var(--navy-800); color: #fff; }
.btn-outline-light { border-color: rgba(255, 255, 255, 0.85); color: #fff; }
.btn-sm { min-height: 44px; padding: 0 var(--s-5); }
@media (hover: hover) {
  .btn-accent:hover { background: var(--accent-hover); }
  .btn-navy:hover { background: var(--navy-700); }
  .btn-outline-light:hover { background: #fff; color: var(--navy-800); }
}

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; background: var(--navy-800); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100% !important; object-fit: cover; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(10, 31, 54, 0.94) 0%, rgba(10, 31, 54, 0.82) 45%, rgba(10, 31, 54, 0.35) 100%);
}
.hero .container { position: relative; z-index: 2; padding-block: var(--s-9); min-height: 560px; display: flex; align-items: center; }
.hero-content { max-width: 640px; }
.hero-kicker { display: inline-block; font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin-bottom: var(--s-4); }
.hero h1 { color: #fff; font-size: var(--fs-2xl); font-weight: 800; line-height: 1.12; letter-spacing: -0.02em; }
.hero p { margin-top: var(--s-5); font-size: var(--fs-md); color: var(--on-dark-2); max-width: 54ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-6); }
@media (max-width: 760px) {
  .hero::before { background: rgba(10, 31, 54, 0.86); }
  .hero .container { min-height: 0; padding-block: var(--s-8); }
}

/* ---------- Pillars strip ---------- */
.pillars { background: var(--bg-alt); border-bottom: 1px solid var(--line); }
.pillars .container { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pillar { padding: var(--s-6) var(--s-5); display: flex; gap: var(--s-4); align-items: flex-start; }
.pillar + .pillar { border-left: 1px solid var(--line); }
.pillar-icon { width: 48px; height: 48px; flex: none; border-radius: 50%; background: var(--navy-800); color: #fff; display: grid; place-items: center; }
.pillar-icon svg { width: 22px; height: 22px; }
.pillar h3 { font-size: var(--fs-md); margin-bottom: var(--s-1); }
.pillar p { font-size: var(--fs-sm); color: var(--ink-2); }
@media (max-width: 860px) {
  .pillars .container { grid-template-columns: 1fr; }
  .pillar + .pillar { border-left: 0; border-top: 1px solid var(--line); }
}

/* ---------- Section scaffolding ---------- */
.section { padding-block: var(--s-9); }
.section-alt { background: var(--bg-alt); }
.section-header { max-width: 720px; margin: 0 auto var(--s-7); text-align: center; }
.section-header.left { margin-inline: 0; text-align: left; }
.kicker { display: inline-block; font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--navy-700); margin-bottom: var(--s-3); }
.kicker::after { content: ""; display: block; width: 40px; height: 3px; background: var(--accent); margin-top: var(--s-3); }
.section-header:not(.left) .kicker::after { margin-inline: auto; }
.section-title { font-size: var(--fs-xl); }
.section-lede { margin-top: var(--s-4); font-size: var(--fs-md); color: var(--ink-2); }
@media (max-width: 760px) { .section { padding-block: var(--s-8); } }

/* ---------- Service cards ---------- */
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-5); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; box-shadow: var(--shadow-sm);
  transition: box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.card-media { aspect-ratio: 3 / 2; overflow: hidden; background: var(--navy-100); }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: var(--s-5); display: flex; flex-direction: column; gap: var(--s-3); flex: 1; }
.card h3 { font-size: var(--fs-md); }
.card p { font-size: var(--fs-sm); color: var(--ink-2); }
.checks { list-style: none; display: grid; gap: var(--s-2); margin-top: auto; padding-top: var(--s-3); border-top: 1px solid var(--line); }
.checks li { position: relative; padding-left: 26px; font-size: var(--fs-sm); color: var(--ink); }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 0.32em; width: 16px; height: 16px; border-radius: 50%;
  background: var(--navy-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.3 2.3 4.7-5' fill='none' stroke='%230e2a47' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}
@media (hover: hover) { .card:hover { box-shadow: var(--shadow-md); border-color: #c9d1db; } }
@media (max-width: 1080px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .cards { grid-template-columns: 1fr; } }

/* ---------- Split layouts ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-8); align-items: center; }
.split-media { position: relative; }
.split-media img { width: 100%; height: auto; border-radius: var(--radius); aspect-ratio: 4 / 3; object-fit: cover; box-shadow: var(--shadow-md); }
.split-media .badge {
  position: absolute; left: -1px; bottom: var(--s-6); background: var(--navy-800); color: #fff;
  padding: var(--s-4) var(--s-5); border-radius: 0 var(--radius) var(--radius) 0; font-weight: 700; font-size: var(--fs-sm);
  border-left: 4px solid var(--accent);
}
.split-media .badge span { display: block; font-weight: 500; color: var(--on-dark-2); font-size: var(--fs-xs); }
.split-body > p { color: var(--ink-2); }
.split-body > p + p { margin-top: var(--s-4); }
.split-body .section-title { margin-bottom: var(--s-4); }
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: var(--s-6); }
  .split.reverse-sm .split-media { order: -1; }
}

/* ---------- Platforms ---------- */
.platforms { list-style: none; margin-top: var(--s-6); display: grid; gap: var(--s-4); }
.platform { display: grid; grid-template-columns: 4px 1fr; gap: var(--s-4); }
.platform::before { content: ""; background: var(--accent); border-radius: 2px; }
.platform h3 { font-size: var(--fs-md); }
.platform h3 small { font-size: var(--fs-xs); font-weight: 600; color: var(--ink-3); letter-spacing: 0.04em; margin-left: var(--s-2); }
.platform p { font-size: var(--fs-sm); color: var(--ink-2); margin-top: var(--s-1); }

.includes { margin-top: var(--s-7); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s-6); }
.includes h3 { font-size: var(--fs-md); margin-bottom: var(--s-5); }
.includes-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-6); }
.includes-grid h4 { font-size: var(--fs-base); margin-bottom: var(--s-1); }
.includes-grid p { font-size: var(--fs-sm); color: var(--ink-2); }
.includes-grid svg { width: 28px; height: 28px; color: var(--navy-700); margin-bottom: var(--s-3); }
@media (max-width: 960px) { .includes-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .includes-grid { grid-template-columns: 1fr; } .includes { padding: var(--s-5); } }
.disclaimer { margin-top: var(--s-5); font-size: var(--fs-xs); color: var(--ink-3); max-width: 100ch; }

/* ---------- Process (navy band) ---------- */
.section-navy { background: var(--navy-800); color: #fff; }
.section-navy .kicker { color: var(--accent); }
.section-navy .section-title { color: #fff; }
.section-navy .section-lede { color: var(--on-dark-2); }
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-6); position: relative; }
.steps::before { content: ""; position: absolute; top: 28px; left: 12%; right: 12%; height: 1px; background: var(--on-dark-line); }
.step { position: relative; text-align: center; }
.step-num {
  width: 56px; height: 56px; margin: 0 auto var(--s-5); border-radius: 50%; display: grid; place-items: center;
  background: var(--navy-800); border: 2px solid var(--accent); color: #fff; font-weight: 800; font-size: var(--fs-md);
  font-variant-numeric: tabular-nums; position: relative;
}
.step h3 { color: #fff; font-size: var(--fs-md); margin-bottom: var(--s-2); }
.step p { color: var(--on-dark-2); font-size: var(--fs-sm); max-width: 30ch; margin-inline: auto; }
@media (max-width: 900px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: var(--s-7); }
  .steps::before { display: none; }
}
@media (max-width: 540px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Values ---------- */
.values { list-style: none; display: grid; gap: var(--s-4); margin-top: var(--s-6); }
.values li { display: flex; gap: var(--s-4); align-items: flex-start; }
.values .v-icon { width: 40px; height: 40px; flex: none; border-radius: var(--radius); background: var(--navy-100); color: var(--navy-800); display: grid; place-items: center; }
.values .v-icon svg { width: 20px; height: 20px; }
.values strong { display: block; color: var(--navy-800); }
.values span { font-size: var(--fs-sm); color: var(--ink-2); }

/* ---------- CTA banner ---------- */
.cta { position: relative; color: #fff; background: var(--navy-900); overflow: hidden; }
.cta img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cta::before { content: ""; position: absolute; inset: 0; z-index: 1; background: rgba(10, 31, 54, 0.84); }
.cta .container { position: relative; z-index: 2; padding-block: var(--s-8); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-5); }
.cta h2 { color: #fff; font-size: var(--fs-xl); max-width: 24ch; }
.cta p { color: var(--on-dark-2); margin-top: var(--s-2); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s-7); align-items: stretch; }
.contact-items { list-style: none; display: grid; gap: var(--s-5); align-content: start; }
.contact-item { display: flex; gap: var(--s-4); padding-bottom: var(--s-5); border-bottom: 1px solid var(--line); }
.contact-item:last-child { border-bottom: 0; }
.contact-item .c-icon { width: 48px; height: 48px; flex: none; border-radius: 50%; background: var(--navy-800); color: #fff; display: grid; place-items: center; }
.contact-item .c-icon svg { width: 20px; height: 20px; }
.contact-item h3 { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink-3); margin-bottom: var(--s-1); }
.contact-item .value { font-size: var(--fs-md); font-weight: 600; color: var(--navy-800); font-style: normal; line-height: 1.5; word-break: break-word; }
.contact-item a.value { text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 4px; transition: text-decoration-color var(--dur) var(--ease); }
.link-arrow { display: inline-flex; align-items: center; gap: var(--s-1); min-height: 44px; font-size: var(--fs-sm); font-weight: 700; color: var(--navy-700); transition: color var(--dur) var(--ease); }
.link-arrow svg { width: 14px; height: 14px; }
@media (hover: hover) {
  .contact-item a.value:hover { text-decoration-color: var(--accent); }
  .link-arrow:hover { color: var(--navy-900); text-decoration: underline; text-underline-offset: 4px; }
}
.map { position: relative; min-height: 420px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--bg-alt); box-shadow: var(--shadow-sm); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } .map { min-height: 320px; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: var(--on-dark-2); font-size: var(--fs-sm); }
.footer-main { padding-block: var(--s-8) var(--s-7); display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.5fr); gap: var(--s-6); }
.site-footer .brand-name strong { color: #fff; }
.site-footer .brand-name span { color: var(--on-dark-2); }
.footer-about { margin-top: var(--s-4); max-width: 40ch; }
.footer-col h4 { color: #fff; font-size: var(--fs-base); margin-bottom: var(--s-4); }
.footer-col ul { list-style: none; display: grid; gap: var(--s-1); }
.footer-col a, .footer-col address { font-style: normal; color: var(--on-dark-2); }
.footer-col a { display: inline-flex; align-items: center; min-height: 32px; transition: color var(--dur) var(--ease); overflow-wrap: anywhere; }
.footer-bottom { border-top: 1px solid var(--on-dark-line); }
.footer-bottom .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-3); padding-block: var(--s-5); font-size: var(--fs-xs); }
.footer-bottom a { transition: color var(--dur) var(--ease); }
@media (hover: hover) { .footer-col a:hover, .footer-bottom a:hover { color: #fff; } }
@media (max-width: 900px) { .footer-main { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-main { grid-template-columns: 1fr; } .footer-col a { min-height: 44px; } }

/* ---------- Page banner (legal / 404) ---------- */
.page-banner { background: var(--navy-800); color: #fff; }
.page-banner .container { padding-block: var(--s-8); }
.breadcrumb { font-size: var(--fs-xs); color: var(--on-dark-2); margin-bottom: var(--s-3); }
.breadcrumb a { text-decoration: underline; text-underline-offset: 3px; }
.page-banner h1 { color: #fff; font-size: var(--fs-2xl); font-weight: 800; }
.page-banner .meta { margin-top: var(--s-3); color: var(--on-dark-2); font-size: var(--fs-sm); }

.legal-layout { display: grid; grid-template-columns: 16rem minmax(0, 1fr); gap: var(--s-8); padding-block: var(--s-8) var(--s-9); }
.toc { position: sticky; top: calc(var(--header-h) + var(--s-5)); align-self: start; background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s-5); }
.toc h2 { font-size: var(--fs-sm); margin-bottom: var(--s-3); }
.toc ol { list-style: none; display: grid; gap: 2px; }
.toc a { display: block; padding: var(--s-1) 0; font-size: var(--fs-sm); color: var(--ink-2); transition: color var(--dur) var(--ease); }
@media (hover: hover) { .toc a:hover { color: var(--navy-800); text-decoration: underline; text-underline-offset: 3px; } }
.prose { max-width: 75ch; }
.prose h2 { font-size: var(--fs-lg); margin-top: var(--s-7); margin-bottom: var(--s-3); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: var(--fs-base); margin-top: var(--s-5); margin-bottom: var(--s-2); }
.prose p, .prose li { color: var(--ink-2); }
.prose p + p { margin-top: var(--s-4); }
.prose ul { padding-left: var(--s-5); margin-top: var(--s-3); display: grid; gap: var(--s-2); }
.prose ul + p { margin-top: var(--s-4); }
.prose a { color: var(--navy-700); text-decoration: underline; text-underline-offset: 3px; }
.prose strong { color: var(--ink); }
.prose address { font-style: normal; color: var(--ink-2); margin-top: var(--s-3); line-height: 1.7; background: var(--bg-alt); border-left: 4px solid var(--accent); padding: var(--s-4) var(--s-5); }
@media (max-width: 900px) { .legal-layout { grid-template-columns: 1fr; gap: var(--s-6); } .toc { display: none; } }

.notfound { padding-block: var(--s-9); text-align: center; }
.notfound p { color: var(--ink-2); font-size: var(--fs-md); margin: var(--s-4) auto var(--s-6); max-width: 46ch; }

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
