/* ==========================================================================
   NLMS, Inc. — Bridge Site
   CrystaLink Business Technologies
   --------------------------------------------------------------------------
   BRAND TOKENS: everything is derived from the block below. When the real
   NLMS brand hex codes come out of the mirror extraction, change them HERE
   and nowhere else. No hard-coded colors exist past this block.
   ========================================================================== */

:root {
  /* --- palette (PROVISIONAL — swap for real NLMS brand values) ----------- */
  --ink:        #12171c;   /* headings, primary text */
  --slate:      #3a454f;   /* body text */
  --mute:       #6b7681;   /* captions, meta */
  --rule:       #dce1e5;   /* hairlines */
  --paper:      #ffffff;
  --paper-2:    #f2f4f6;   /* alternating band */
  --amber:      #e8a317;   /* single accent — sodium/HID reference */
  --amber-deep: #a8760a;   /* accent on light bg, AA-safe for text */

  /* --- type ------------------------------------------------------------- */
  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --body:    "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --data:    "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --s-xs: .75rem;
  --s-sm: .875rem;
  --s-md: 1.0625rem;
  --s-lg: 1.375rem;
  --s-xl: 2rem;
  --s-2xl: 2.75rem;
  --s-3xl: 3.75rem;

  /* --- spacing ---------------------------------------------------------- */
  --gap: 1.5rem;
  --band: 5.5rem;
  --max: 1140px;
  --narrow: 720px;
}

/* --------------------------------------------------------------------------
   RESET / BASE
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--slate);
  font-family: var(--body);
  font-size: var(--s-md);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--amber-deep); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--amber-deep);
  outline-offset: 3px;
}

h1, h2, h3, h4 {
  font-family: var(--display);
  color: var(--ink);
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin: 0 0 .6em;
  font-weight: 700;
}

h1 { font-size: clamp(2.1rem, 5vw, var(--s-3xl)); }
h2 { font-size: clamp(1.6rem, 3.4vw, var(--s-2xl)); }
h3 { font-size: var(--s-lg); }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

.wrap   { max-width: var(--max);    margin-inline: auto; padding-inline: 1.5rem; }
.narrow { max-width: var(--narrow); margin-inline: auto; padding-inline: 1.5rem; }

.band       { padding-block: var(--band); }
.band--tint { background: var(--paper-2); }
.band--ink  { background: var(--ink); color: #c8ced4; }
.band--ink h2, .band--ink h3 { color: #fff; }

.skip {
  position: absolute; left: -9999px;
  background: var(--ink); color: #fff; padding: .75rem 1rem; z-index: 99;
}
.skip:focus { left: 1rem; top: 1rem; }

/* --------------------------------------------------------------------------
   EYEBROW — a label, not decoration. Used only where it names a real section.
   -------------------------------------------------------------------------- */
.eyebrow {
  font-family: var(--data);
  font-size: var(--s-xs);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--mute);
  margin: 0 0 1rem;
  display: flex;
  align-items: center;
  gap: .75rem;
}
.eyebrow::before {
  content: "";
  width: 1.75rem;
  height: 2px;
  background: var(--amber);
  flex: none;
}
.band--ink .eyebrow { color: #8b96a1; }

/* --------------------------------------------------------------------------
   HEADER
   -------------------------------------------------------------------------- */
.site-head {
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
  position: sticky; top: 0; z-index: 40;
}
.site-head__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--gap);
  min-height: 78px;
}
.brand { display: flex; align-items: center; gap: .85rem; text-decoration: none; }
.brand img { height: 46px; width: auto; }

/* Wordmark fallback until the real logo file is dropped in */
.brand__mark {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: -.02em;
  color: var(--ink);
  line-height: 1;
}
.brand__sub {
  font-family: var(--data);
  font-size: .625rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--mute);
  display: block;
  margin-top: .3rem;
}

.nav { display: flex; align-items: center; gap: 1.75rem; }
.nav a {
  font-family: var(--display);
  font-weight: 600;
  font-size: .9375rem;
  color: var(--ink);
  text-decoration: none;
  padding: .35rem 0;
  border-bottom: 2px solid transparent;
}
.nav a:hover, .nav a[aria-current="page"] {
  border-bottom-color: var(--amber);
  color: var(--ink);
}

.tel {
  font-family: var(--data);
  font-weight: 600;
  font-size: .9375rem;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid var(--rule);
  padding: .55rem .9rem;
}
.tel:hover { border-color: var(--ink); color: var(--ink); }

.nav-toggle { display: none; }

@media (max-width: 900px) {
  .site-head__inner { min-height: 66px; }
  .nav {
    display: none;
    position: absolute; inset: 100% 0 auto 0;
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: .5rem 1.5rem 1.25rem;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: .8rem 0; border-bottom: 1px solid var(--rule); }
  .nav-toggle {
    display: block;
    background: none; border: 1px solid var(--rule);
    font-family: var(--data); font-size: .75rem; letter-spacing: .1em;
    text-transform: uppercase;
    padding: .6rem .8rem; cursor: pointer; color: var(--ink);
  }
  .site-head__inner .tel { display: none; }
}

/* --------------------------------------------------------------------------
   HERO — the thesis. Plain statement of what they do and who they serve.
   -------------------------------------------------------------------------- */
.hero {
  border-bottom: 1px solid var(--rule);
  padding-block: 4.5rem 0;
}
.hero__lede {
  font-size: clamp(1.0625rem, 2vw, var(--s-lg));
  color: var(--slate);
  max-width: 46ch;
  margin-bottom: 2rem;
}
.hero h1 { max-width: 17ch; }
.hero h1 em {
  font-style: normal;
  color: var(--amber-deep);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: .875rem; align-items: center; }

/* CREDENTIAL RAIL — the bid reviewer's scan target. Mono, because it's data. */
.creds {
  margin-top: 4rem;
  border-top: 1px solid var(--rule);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.creds__item {
  padding: 1.5rem 1.25rem 1.75rem 0;
  border-right: 1px solid var(--rule);
}
.creds__item:last-child { border-right: 0; }
.creds__k {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--ink);
  line-height: 1.1;
  display: block;
}
.creds__v {
  font-family: var(--data);
  font-size: var(--s-xs);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--mute);
  margin-top: .4rem;
  display: block;
}
@media (max-width: 820px) {
  .creds { grid-template-columns: repeat(2, 1fr); }
  .creds__item { border-bottom: 1px solid var(--rule); padding-inline: 0 1rem; }
  .creds__item:nth-child(2n) { border-right: 0; padding-right: 0; }
}

/* --------------------------------------------------------------------------
   BUTTONS
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--display);
  font-weight: 600;
  font-size: .9375rem;
  padding: .85rem 1.5rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.btn--primary { background: var(--ink); color: #fff; }
.btn--primary:hover { background: var(--amber-deep); color: #fff; }
.btn--ghost { border-color: var(--rule); color: var(--ink); background: transparent; }
.btn--ghost:hover { border-color: var(--ink); color: var(--ink); }

/* --------------------------------------------------------------------------
   CARDS — service grid
   -------------------------------------------------------------------------- */
.grid { display: grid; gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid--3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .grid--3, .grid--2 { grid-template-columns: 1fr; } }

.card {
  background: var(--paper);
  padding: 2rem 1.75rem 2.25rem;
  display: flex; flex-direction: column;
  text-decoration: none;
  color: var(--slate);
}
a.card:hover { background: var(--paper-2); }
a.card:hover h3 { color: var(--amber-deep); }
.card h3 { margin-bottom: .5rem; }
.card p { font-size: var(--s-sm); }
.card__more {
  font-family: var(--data);
  font-size: var(--s-xs);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--amber-deep);
  margin-top: auto;
  padding-top: 1.25rem;
}

/* --------------------------------------------------------------------------
   SPEC TABLE — the signature. Capabilities rendered as a spec sheet, because
   that is exactly the artifact a contracting officer is looking for.
   -------------------------------------------------------------------------- */
.spec {
  border-top: 2px solid var(--ink);
  font-family: var(--data);
  font-size: var(--s-sm);
}
.spec__row {
  display: grid;
  grid-template-columns: 15rem 1fr;
  gap: var(--gap);
  padding: 1.05rem 0;
  border-bottom: 1px solid var(--rule);
}
.spec__k {
  color: var(--mute);
  font-size: var(--s-xs);
  letter-spacing: .1em;
  text-transform: uppercase;
  padding-top: .2rem;
}
.spec__v { color: var(--ink); font-weight: 500; }
.spec__v .note {
  display: block;
  font-family: var(--body);
  font-size: var(--s-sm);
  color: var(--mute);
  font-weight: 400;
  margin-top: .3rem;
}
@media (max-width: 720px) {
  .spec__row { grid-template-columns: 1fr; gap: .35rem; }
}

/* --------------------------------------------------------------------------
   PROSE — service page body copy dropped in from extraction
   -------------------------------------------------------------------------- */
.prose h2 { margin-top: 2.75rem; }
.prose h3 { margin-top: 2rem; }
.prose ul { padding-left: 1.1rem; margin: 0 0 1.25em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--amber); }
.prose > :first-child { margin-top: 0; }

/* --------------------------------------------------------------------------
   PAGE HEADER (interior pages)
   -------------------------------------------------------------------------- */
.pagehead {
  border-bottom: 1px solid var(--rule);
  padding-block: 3.5rem 3rem;
  background: var(--paper-2);
}
.pagehead h1 { max-width: 20ch; margin-bottom: .75rem; }
.pagehead p { max-width: 58ch; font-size: var(--s-lg); color: var(--slate); }

/* --------------------------------------------------------------------------
   CONTACT BLOCK
   -------------------------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
@media (max-width: 780px) { .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; } }

.contact-item { margin-bottom: 2.25rem; }
.contact-item__label {
  font-family: var(--data);
  font-size: var(--s-xs);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--mute);
  margin: 0 0 .4rem;
}
.contact-item__value {
  font-family: var(--display);
  font-weight: 700;
  font-size: var(--s-xl);
  color: var(--ink);
  text-decoration: none;
  line-height: 1.2;
  display: inline-block;
}
a.contact-item__value:hover { color: var(--amber-deep); }

/* --------------------------------------------------------------------------
   FOOTER
   -------------------------------------------------------------------------- */
.site-foot {
  background: var(--ink);
  color: #8b96a1;
  padding-block: 3.5rem 2rem;
  font-size: var(--s-sm);
}
.site-foot a { color: #c8ced4; text-decoration: none; }
.site-foot a:hover { color: var(--amber); }
.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid #2a3239;
}
@media (max-width: 780px) { .foot-grid { grid-template-columns: 1fr; gap: 2rem; } }

.foot-grid h4 {
  font-family: var(--data);
  font-size: var(--s-xs);
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #6b7681;
  margin-bottom: 1rem;
}
.foot-list { list-style: none; margin: 0; padding: 0; }
.foot-list li { margin-bottom: .55rem; }

.foot-brand .brand__mark { color: #fff; }
.foot-brand p { margin-top: 1rem; max-width: 34ch; }

.colophon {
  padding-top: 1.75rem;
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between;
  font-family: var(--data);
  font-size: var(--s-xs);
  color: #6b7681;
}

/* --------------------------------------------------------------------------
   BUILD MARKER — anything still needing real content is loud on screen.
   Delete this rule (and the markup) before go-live.
   -------------------------------------------------------------------------- */
.needs {
  background: #fff3cd;
  border-left: 4px solid var(--amber);
  color: #5c4708;
  font-family: var(--data);
  font-size: var(--s-sm);
  padding: .9rem 1.1rem;
  margin: 1.25rem 0;
}
