/* NexTech Business Solutions — static rebuild stylesheet
   Reconstructed from the live site's compiled CSS. Colors, spacing,
   typography and breakpoints match the source exactly; utility-class
   soup has been replaced with equivalent structural rules.
   Color palette (Aug 2026) updated to match the Creative-Fi navy/gold
   brand system per the Creative-Fi Funding Process reference doc. */

:root {
  --color-site-background: #ffffff;
  --color-site-surface: #f6eedc;
  --color-site-text: #12233f;
  --color-site-muted: #5a6170;
  --color-site-primary: #12233f;
  --color-site-accent: #12233f;
  --color-site-gold: #896e1b;
  --font-site-heading: "Saira", "Inter", system-ui, sans-serif;
  --font-site-body: "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --radius-site: 0.375rem;
  --site-spacing-factor: 1;
}

@font-face {
  font-family: Saira;
  src: url(/assets/fonts/saira-latin-variable.woff2) format("woff2");
  font-style: normal;
  font-weight: 300 800;
  font-stretch: 75% 125%;
  font-display: swap;
}
@font-face {
  font-family: Inter;
  src: url(/assets/fonts/inter-latin-variable.woff2) format("woff2");
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url(/assets/fonts/jetbrains-mono-latin-variable.woff2) format("woff2");
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
}

/* --- reset / base --- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  font-family: var(--font-site-body);
  scroll-padding-top: 5rem;
}
body {
  margin: 0;
  color: var(--color-site-text);
  background: var(--color-site-background);
  font-feature-settings: "ss01","cv11","tnum";
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, h4, h5, h6 { margin: 0; font-size: inherit; font-weight: inherit; }
h1, h2, h3 { font-family: var(--font-site-heading); letter-spacing: -.04em; text-wrap: balance; line-height: .98; }
p { margin: 0; }
a { color: inherit; text-decoration: inherit; }
a, button, summary { touch-action: manipulation; -webkit-tap-highlight-color: #12233f1f; }
img, svg { display: block; max-width: 100%; height: auto; }
ul, ol { list-style: none; margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
textarea { resize: vertical; }
::selection { color: var(--color-site-background); background: var(--color-site-text); }
:focus-visible { outline-offset: 3px; outline: 2px solid var(--color-site-text); }
button { cursor: pointer; }

.skip-link {
  position: absolute; top: -200%; left: 1rem; z-index: 100;
  color: var(--color-site-background); background: var(--color-site-text);
  padding: .6rem 1rem;
}
.skip-link:focus { top: 1rem; }

.max-w-6xl { max-width: 72rem; margin-inline: auto; }

/* --- header --- */
#header-1 {
  position: sticky; top: 0; z-index: 50;
  background: var(--color-site-primary);
  border-bottom: 1px solid rgba(255,255,255,.12);
}
#header-1 > div {
  max-width: 1440px; margin-inline: auto; padding: 1.5rem 3.5rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  position: relative;
}
#header-1 .logo-link { display: flex; align-items: center; gap: .5rem; }
#header-1 img {
  height: 4.8rem; width: auto;
  /* raster logo is black-on-transparent; invert to white for the navy bar */
  filter: brightness(0) invert(1);
}
#header-1 nav[aria-label="Primary"] { display: none; align-items: center; gap: 2.2rem; }
#header-1 nav a { color: #ffffff; font-size: .76rem; text-decoration: none; }
#header-1 nav a:hover { color: #ffffff; opacity: .7; }
#header-1 .header-cta {
  color: var(--color-site-primary) !important; background: #ffffff;
  border-radius: 999px; padding: .72rem 1rem; font-weight: 500; opacity: 1 !important;
}
#header-1 .mobile-nav { display: block; }
#header-1 .mobile-nav summary {
  cursor: pointer; border: 1px solid #ffffff; color: #ffffff;
  display: flex; justify-content: center; align-items: center;
  width: 2.75rem; height: 2.75rem; padding: 0; list-style: none;
}
#header-1 .mobile-nav summary::-webkit-details-marker { display: none; }
#header-1 .mobile-nav summary:hover,
#header-1 .mobile-nav summary:focus-visible,
#header-1 .mobile-nav[open] summary { color: var(--color-site-primary); background: #ffffff; }
#header-1 .hamburger { position: relative; display: inline-block; width: 1.35rem; height: 1rem; }
#header-1 .hamburger-line {
  position: absolute; left: 0; width: 100%; height: 2px; background: currentColor;
  transition: transform .25s ease, opacity .2s ease, top .25s ease;
}
#header-1 .hamburger-line:nth-child(1) { top: 0; }
#header-1 .hamburger-line:nth-child(2) { top: 50%; transform: translateY(-50%); }
#header-1 .hamburger-line:nth-child(3) { top: 100%; transform: translateY(-100%); }
#header-1 .mobile-nav[open] .hamburger-line:nth-child(1) { top: 50%; transform: translateY(-50%) rotate(45deg); }
#header-1 .mobile-nav[open] .hamburger-line:nth-child(2) { opacity: 0; }
#header-1 .mobile-nav[open] .hamburger-line:nth-child(3) { top: 50%; transform: translateY(-50%) rotate(-45deg); }
#header-1 [data-mobile-panel] {
  background: var(--color-site-background); border: 1px solid var(--color-site-text);
  width: min(22rem, calc(100vw - 3rem)); position: absolute; top: calc(100% + .75rem); right: 0;
  box-shadow: 6px 6px var(--color-site-text);
}
#header-1 [data-mobile-panel] nav { display: flex; flex-direction: column; gap: 0; }
#header-1 [data-mobile-panel] nav a {
  display: flex; justify-content: space-between; align-items: center;
  color: var(--color-site-text); border-bottom: 1px solid #12233f2e;
  min-height: 3.25rem; padding: .85rem 1rem; font-size: .76rem; text-decoration: none;
}
#header-1 [data-mobile-panel] nav a:hover,
#header-1 [data-mobile-panel] nav a:focus-visible { background: var(--color-site-surface); }
#header-1 [data-mobile-panel] .header-cta-mobile {
  color: var(--color-site-background) !important; background: var(--color-site-text); border-bottom: 0;
}

@media (max-width: 900px) {
  #header-1 > div { padding-top: 1rem; padding-bottom: 1rem; }
  #header-1 img { height: 3.2rem; }
}
@media (max-width: 480px) {
  #header-1 img { height: 2.6rem; }
}

@media (min-width: 48rem) {
  #header-1 nav[aria-label="Primary"] { display: flex; }
  #header-1 .mobile-nav { display: none; }
}

/* --- hero (shared home / about / privacy) --- */
[id^="hero-"] {
  position: relative; overflow: hidden;
  color: var(--color-site-text); background: var(--color-site-background);
  border-bottom: 1px solid #12233f29;
  padding-top: calc(8rem * var(--site-spacing-factor));
  padding-bottom: calc(6rem * var(--site-spacing-factor));
}
[id^="hero-"] .hero-glow {
  position: absolute; inset: 0;
  background: none;
}
[id^="hero-"] .hero-inner {
  position: relative; max-width: 1440px; min-height: 540px; margin-inline: auto;
  padding-left: 3.5rem; padding-right: 3.5rem;
  display: flex; flex-direction: column; align-items: flex-start; gap: 2.5rem;
}
[id^="hero-"] h1 {
  color: var(--color-site-text); letter-spacing: -.055em; max-width: 17ch;
  font-size: clamp(3.7rem, 7.5vw, 8rem); font-weight: 500; line-height: .91;
}
[id^="hero-"] .hero-subhead { margin-top: 1.5rem; max-width: 66ch; font-size: 1rem; line-height: 1.65; color: var(--color-site-text); }
[id^="hero-"] .hero-subhead p + p { margin-top: 1rem; }
[id^="hero-"] .hero-cta {
  display: inline-block; color: #ffffff; background: #12233f;
  border-radius: 999px; padding: .75rem 1.5rem; font-size: .875rem; font-weight: 500; text-decoration: none;
  margin-top: 1.5rem;
}
[id^="hero-"] .hero-image {
  max-width: 36rem; width: 100%; height: 320px;
  object-fit: cover; border-radius: var(--radius-site);
  border: 1px solid rgba(18,35,63,.15);
}
@media (min-width: 48rem) {
  [id^="hero-"] .hero-image { height: 400px; }
}

@media (min-width: 48rem) {
  [id^="hero-"] .hero-inner { flex-direction: row; align-items: center; }
  [id^="hero-"] .hero-image { flex: 1; }
}

/* --- generic content sections --- */
section[data-block]:not([id^="hero-"]):not([id^="cta-"]):not(#footer-1) {
  max-width: 1328px; margin-inline: auto; padding-left: 1.25rem; padding-right: 1.25rem;
  padding-top: clamp(2.5rem, 4vw, 3.5rem); padding-bottom: clamp(2.5rem, 4vw, 3.5rem);
}
section[data-block] > h2 { max-width: 22ch; font-size: clamp(3rem, 5.5vw, 5.5rem); font-weight: 500; }
.item-grid { margin-top: 2.5rem; display: grid; gap: 2rem; }
.item-grid article h2, .item-grid article h3 { margin-top: 1rem; font-size: 1.25rem; font-weight: 600; }
.item-grid article .desc { margin-top: .5rem; font-size: .875rem; line-height: 1.5rem; color: var(--color-site-muted); }
.item-grid article .desc p + p { margin-top: .5rem; }

@media (min-width: 48rem) {
  .item-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* --- legal documents (privacy / terms) --- */
section.legal-doc[data-block] { max-width: 1120px !important; padding-top: clamp(2.5rem, 4vw, 3.5rem); padding-bottom: clamp(2.5rem, 4vw, 3.5rem); }
.legal-layout { display: block; }
.legal-content { max-width: 700px; }
.legal-doc .legal-meta { font-size: .875rem; color: var(--color-site-muted); margin-bottom: 3.5rem; line-height: 1.8; }
.legal-doc .legal-meta p { margin: 0; }
.legal-doc .legal-intro p { font-size: 1.0625rem; line-height: 1.85; color: var(--color-site-text); margin-bottom: 1.75rem; }
.legal-doc .legal-intro { margin-bottom: 3.5rem; padding-bottom: 3.5rem; border-bottom: 1px solid #12233f24; }
.legal-doc .legal-content > section { margin-top: 3.5rem; padding-top: 3.5rem; border-top: 1px solid #12233f24; }
.legal-doc .legal-content > section:first-of-type { margin-top: 0; padding-top: 0; border-top: none; }
.legal-doc .legal-content > section:focus { outline: none; }
.legal-doc .legal-content > section:focus-visible { outline: 2px solid var(--color-site-text); outline-offset: 10px; }
.legal-doc h2 {
  font-family: var(--font-site-heading); font-size: 1.65rem; font-weight: 600;
  color: var(--color-site-primary); margin: 0 0 1.5rem; letter-spacing: -.01em;
}
.legal-doc h3 { font-family: var(--font-site-heading); font-size: 1.1rem; font-weight: 600; margin: 2rem 0 .9rem; }
.legal-doc h3:first-of-type { margin-top: 1.75rem; }
.legal-doc p { font-size: 1rem; line-height: 1.85; color: var(--color-site-text); margin: 0 0 1.5rem; }
.legal-doc p:last-child { margin-bottom: 0; }
.legal-doc ul { margin: 0 0 1.75rem; padding-left: 0; list-style: none; }
.legal-doc ul:last-child { margin-bottom: 0; }
.legal-doc li {
  font-size: 1rem; line-height: 1.8; color: var(--color-site-text);
  margin-bottom: 1.1rem; padding-left: 1.5rem; position: relative;
}
.legal-doc li:last-child { margin-bottom: 0; }
.legal-doc li::before {
  content: ""; position: absolute; left: .35rem; top: .75rem;
  width: 5px; height: 5px; border-radius: 50%; background: var(--color-site-gold);
}
.legal-doc strong { font-weight: 600; }

/* sidebar table of contents */
.legal-toc { margin-bottom: 3rem; }
.legal-toc h2 {
  font-family: var(--font-site-heading); font-size: 1rem; font-weight: 700;
  color: var(--color-site-text); margin: 0 0 1.25rem; line-height: 1.4;
}
.legal-toc ol { margin: 0; padding-left: 0; list-style: none; counter-reset: toc-item; }
.legal-toc li {
  font-size: .85rem; line-height: 1.4; margin-bottom: .85rem;
  position: static; counter-increment: toc-item;
  color: var(--color-site-text);
  display: flex; align-items: baseline; gap: .4rem;
}
.legal-toc li::before {
  content: counter(toc-item) ".";
  color: var(--color-site-gold); font-weight: 600;
  flex: 0 0 auto; min-width: 1.15rem;
  position: static; top: auto; left: auto;
  width: auto; height: auto; border-radius: 0; background: none;
}
.legal-toc li::marker { display: none; }
.legal-toc li:last-child { margin-bottom: 0; }
.legal-toc a { flex: 1 1 auto; }
.legal-toc a { color: var(--color-site-primary); text-decoration: none; border-bottom: 1px solid transparent; }
.legal-toc a:hover, .legal-toc a:focus-visible { border-bottom-color: var(--color-site-gold); }

@media (min-width: 64rem) {
  .legal-layout { display: flex; align-items: flex-start; gap: 4.5rem; }
  .legal-toc {
    flex: 0 0 250px; position: sticky; top: 9rem;
    max-height: calc(100vh - 10.5rem); overflow-y: auto; margin-bottom: 0;
  }
  .legal-content { flex: 1 1 auto; min-width: 0; }
}

/* --- ticker --- */
#ticker-1 {
  max-width: none; border-top: 1px solid var(--color-site-text); border-bottom: 1px solid var(--color-site-text);
  padding: 1.1rem 1.25rem;
}
#ticker-1 .item-grid { margin-top: 0; max-width: 1328px; margin-inline: auto; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.2rem; }
#ticker-1 article { text-align: center; padding: .25rem; }
#ticker-1 article h2 { margin-top: 0; letter-spacing: .14em; font-family: var(--font-mono); font-size: .68rem; font-weight: 400; color: var(--color-site-gold); }
@media (min-width: 48rem) {
  #ticker-1 .item-grid { grid-template-columns: repeat(8, minmax(0, 1fr)); }
}

/* --- capabilities --- */
#capabilities { border-top: 1px solid #12233f1f; }
#capabilities .item-grid { display: block; margin-top: 2.5rem; }
#capabilities article {
  display: grid; grid-template-columns: minmax(280px, .8fr) 1.2fr; gap: 3rem;
  padding: 2.8rem .5rem; border-top: 1px solid #12233f24; transition: padding .3s, background .3s;
}
#capabilities article:hover { background: var(--color-site-surface); padding-left: 1.4rem; }
#capabilities article h3 { margin-top: 0; font-size: clamp(2rem, 3vw, 3rem); font-weight: 500; }
#capabilities article .desc { font-size: .95rem; line-height: 1.65; }
#capabilities article code {
  display: flex; flex-wrap: wrap; justify-content: space-between; column-gap: 1rem; row-gap: .5rem;
  width: 80%; margin-top: 1.25rem;
  letter-spacing: .08em; color: var(--color-site-gold); font-family: var(--font-mono); font-size: .95rem;
}
@media (max-width: 900px) {
  #capabilities article { grid-template-columns: 1fr; gap: .8rem; }
  #capabilities article code { justify-content: flex-start; width: 100%; }
}

/* --- sectors --- */
#sectors { border-top: 1px solid #12233f1f; }
#sectors .item-grid { border-top: 1px solid var(--color-site-text); grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; }
#sectors article { border-bottom: 1px solid #12233f24; min-height: 165px; padding: 2rem; }
#sectors article:nth-child(2n) { border-left: 1px solid #12233f24; }
#sectors article:hover { background: var(--color-site-surface); }
#sectors article h3 { font-size: clamp(2rem, 3vw, 3rem); font-weight: 500; }
@media (max-width: 900px) {
  #sectors .item-grid { grid-template-columns: 1fr; }
  #sectors article:nth-child(2n) { border-left: 0; }
}

/* --- record / about-stats --- */
#record { border-top: 1px solid #12233f1f; }
#record .item-grid, #about-stats .item-grid {
  border-top: 1px solid var(--color-site-text); border-left: 1px solid var(--color-site-text);
  grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0;
}
#record article, #about-stats article {
  border-bottom: 1px solid var(--color-site-text); border-right: 1px solid var(--color-site-text);
  min-height: 220px; padding: 2rem;
}
#record article h3, #about-stats article h3 { font-size: clamp(3.4rem, 5.5vw, 6rem); font-weight: 500; color: var(--color-site-gold); }
#record article .desc, #about-stats article .desc {
  text-transform: uppercase; border-top: 1px solid #12233f24; padding-top: 1rem;
  font-family: var(--font-mono); font-size: .68rem; line-height: 1.6;
}
@media (max-width: 900px) {
  #record .item-grid, #about-stats .item-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* --- about-summary / about-model --- */
#about-summary .item-grid, #about-model .item-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5rem; }
#about-summary article, #about-model article { border-top: 1px solid var(--color-site-text); padding: 2rem 0; }
#about-summary article h2, #about-model article h2 { font-size: 1.75rem; font-weight: 500; }
#about-summary article .desc, #about-model article .desc { font-size: 1rem; line-height: 1.75; }
@media (max-width: 900px) {
  #about-summary .item-grid, #about-model .item-grid { grid-template-columns: 1fr; }
}

/* --- about-capabilities --- */
#about-capabilities .item-grid { border-top: 1px solid #12233f29; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; }
#about-capabilities article { border-bottom: 1px solid #12233f29; padding: 1.6rem; }
#about-capabilities article:nth-child(2n) { border-left: 1px solid #12233f29; }
@media (max-width: 900px) {
  #about-capabilities .item-grid { grid-template-columns: 1fr; }
  #about-capabilities article:nth-child(2n) { border-left: 0; }
}

/* --- contact form (#correspond) --- */
#correspond { max-width: 1180px; }
#correspond h2 { text-align: left; max-width: 18ch; margin-right: auto; font-size: clamp(3rem, 5.5vw, 5.4rem); }
#correspond form {
  margin-top: 2rem; background: var(--color-site-surface); border: 1px solid var(--color-site-text);
  padding: clamp(2rem, 5vw, 4rem); box-shadow: 8px 8px var(--color-site-text);
}
#correspond .field { margin-top: 1rem; }
#correspond .field:first-child { margin-top: 0; }
#correspond label { display: block; font-size: .875rem; font-weight: 500; }
#correspond input, #correspond select, #correspond textarea {
  margin-top: .5rem; width: 100%; color: var(--color-site-text); background: var(--color-site-background);
  border: 1px solid var(--color-site-text); padding: .5rem .75rem; font-size: 1rem;
}
#correspond [aria-invalid="true"] { border-color: #a21c1c; box-shadow: 0 0 0 1px #a21c1c; }
#correspond button[type="submit"] {
  margin-top: 1.5rem; width: 100%; color: var(--color-site-background); background: var(--color-site-text);
  border: none; padding: .625rem 1rem; font-size: .875rem; font-weight: 500;
}
#correspond button[type="submit"]:disabled { opacity: .5; cursor: not-allowed; }
#correspond .form-note { margin-top: 1rem; font-size: .75rem; line-height: 1.25rem; color: var(--color-site-muted); }
#correspond .form-note a { text-decoration: underline; text-underline-offset: 2px; }
#correspond .form-note a:hover { color: var(--color-site-text); }
#correspond .form-status { margin-top: 1rem; padding: .75rem 1rem; font-size: .875rem; border: 1px solid var(--color-site-text); display: none; }
#correspond .form-status.is-visible { display: block; }
#correspond .form-status.is-success { color: #14532d; border-color: #14532d; }
#correspond .form-status.is-error { color: #a21c1c; border-color: #a21c1c; }
#correspond .field-error { display: none; margin-top: .35rem; font-size: .75rem; color: #a21c1c; }
#correspond .field-error.is-visible { display: block; }
#correspond .honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* --- CTA band (about / privacy) --- */
[id^="cta-"] {
  color: #fff; background: var(--color-site-accent); max-width: 1180px; margin: clamp(2.5rem, 4vw, 3.5rem) auto;
  padding: clamp(2.5rem, 4vw, 3.5rem) 1.25rem;
}
[id^="cta-"] .cta-inner { max-width: 48rem; margin-inline: auto; display: flex; flex-direction: column; align-items: center; gap: 1rem; text-align: center; }
[id^="cta-"] h2 { color: #fff; font-size: clamp(1.875rem, 5.5vw, 3rem); font-weight: 500; }
[id^="cta-"] .cta-subhead { color: rgba(255,255,255,.8); }
[id^="cta-"] a {
  display: inline-block; color: var(--color-site-accent); background: #fff; border-radius: 999px;
  padding: .75rem 1.5rem; font-size: .875rem; font-weight: 500; text-decoration: none;
}
@media (max-width: 900px) {
  [id^="cta-"] { margin-left: 1rem; margin-right: 1rem; }
}

/* --- footer --- */
#footer-1 { background: var(--color-site-background); border-top: 1px solid var(--color-site-text); padding-top: calc(6rem * var(--site-spacing-factor)); }
#footer-1 > div {
  max-width: 1328px; margin-inline: auto; padding: 0 1.25rem 2.5rem;
  display: flex; flex-direction: column; align-items: flex-start; gap: .75rem;
  font-size: .875rem; color: var(--color-site-muted);
}
#footer-1 .footer-legal { max-width: 68ch; font-family: var(--font-mono); font-size: .66rem; line-height: 1.8; }
#footer-1 .footer-links { display: flex; align-items: center; gap: 1rem; color: var(--color-site-text); flex-wrap: wrap; }
#footer-1 .footer-links a { text-decoration: none; }
#footer-1 .footer-links a:hover { color: var(--color-site-text); opacity: .7; }
#footer-1 .footer-social { display: flex; align-items: center; gap: .9rem; margin-left: .5rem; padding-left: 1rem; border-left: 1px solid #12233f24; }
#footer-1 .footer-social a { display: inline-flex; color: var(--color-site-text); }
#footer-1 .footer-social a:hover { opacity: .7; }
#footer-1 .footer-social svg { width: 18px; height: 18px; }
@media (min-width: 48rem) {
  #footer-1 > div { flex-direction: row; align-items: center; justify-content: space-between; }
}

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