/* ==========================================================================
   Northern Computers — nnycomputers.net
   Brand: Navy #1F4E79 · Medium Blue #2E75B6 · Orange #FF6600
   Type:  Outfit (display + body) · IBM Plex Mono (doc IDs, framework tags)
   ========================================================================== */

:root {
  --navy: #1F4E79;
  --blue: #2E75B6;
  --orange: #FF6600;
  --ink: #16283A;
  --slate: #4A5D70;
  --ice: #EEF4FA;
  --line: #D5E1EC;
  --deep: #142F4C;
  --white: #FFFFFF;
  --radius: 10px;
  --shadow: 0 6px 24px rgba(31, 78, 121, 0.10);
  --maxw: 1140px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: 'Outfit', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
}

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

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- Type scale ---------- */
h1, h2, h3, h4 { font-family: 'Outfit', sans-serif; color: var(--navy); line-height: 1.15; }
h1 { font-size: clamp(2.1rem, 4.5vw, 3.2rem); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 700; letter-spacing: -0.01em; }
h3 { font-size: 1.2rem; font-weight: 700; }
p  { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 14px;
}
/* Chevron mark — a quiet nod to the company's Army roots */
.eyebrow::before {
  content: "";
  width: 14px;
  height: 14px;
  background:
    linear-gradient(135deg, transparent 42%, var(--orange) 42%, var(--orange) 58%, transparent 58%),
    linear-gradient(45deg, transparent 42%, var(--orange) 42%, var(--orange) 58%, transparent 58%);
  background-size: 50% 100%;
  background-position: left, right;
  background-repeat: no-repeat;
}

/* Document-ID / framework chip — set in mono, from NC's own doc convention */
.chip {
  display: inline-block;
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--navy);
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 3px solid var(--orange);
  padding: 4px 10px;
  border-radius: 4px;
  white-space: nowrap;
}
.chip--invert { color: #DCEAF7; background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.25); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 13px 26px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn--primary { background: var(--orange); color: var(--white); }
.btn--primary:hover { background: #E65C00; }
.btn--ghost { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn--ghost:hover { background: var(--navy); color: var(--white); }
.btn--ghost-light { border-color: rgba(255,255,255,0.7); color: var(--white); background: transparent; }
.btn--ghost-light:hover { background: rgba(255,255,255,0.12); }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 16px;
}
.logo {
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--navy);
  letter-spacing: -0.01em;
  text-decoration: none;
}
.logo:hover { text-decoration: none; }
.logo .logo-mark { color: var(--orange); }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  font: inherit;
  font-weight: 700;
  color: var(--navy);
  padding: 8px 12px;
  cursor: pointer;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}
.nav-menu > li { position: relative; }
.nav-menu a, .nav-menu .drop-btn {
  display: block;
  padding: 10px 14px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
  background: none;
  border: 0;
  font-family: inherit;
  cursor: pointer;
}
.nav-menu > li > a:hover, .drop-btn:hover { color: var(--blue); text-decoration: none; }
.nav-menu a[aria-current="page"] { color: var(--blue); }
.drop-btn::after { content: " ▾"; font-size: 0.75em; color: var(--slate); }

.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 230px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 8px;
  list-style: none;
}
.dropdown.open { display: block; }
.dropdown a { padding: 9px 12px; border-radius: 6px; font-weight: 500; }
.dropdown a:hover { background: var(--ice); text-decoration: none; }

.nav-cta { margin-left: 8px; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(140deg, var(--navy) 0%, #173D5F 55%, var(--deep) 100%);
  color: var(--white);
  padding: 84px 0 72px;
}
.hero h1 { color: var(--white); max-width: 780px; }
.hero .lede {
  font-size: 1.15rem;
  color: #C9DCEE;
  max-width: 680px;
  margin: 20px 0 30px;
}
.hero .eyebrow { color: var(--orange); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-rail {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 44px;
  padding-top: 26px;
  border-top: 1px solid rgba(255,255,255,0.18);
}

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section--ice { background: var(--ice); }
.section--navy { background: var(--deep); color: #D7E6F4; }
.section--navy h2, .section--navy h3 { color: var(--white); }
.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head p { color: var(--slate); }
.section--navy .section-head p { color: #B9CFE3; }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 22px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.card:hover { box-shadow: var(--shadow); }
.card h3 a { color: var(--navy); }
.card p { color: var(--slate); font-size: 0.97rem; margin-bottom: 0; }
.card .card-more { margin-top: auto; font-weight: 700; font-size: 0.9rem; color: var(--orange); }

.stat { text-align: left; }
.stat .num { font-size: 2.4rem; font-weight: 800; color: var(--orange); line-height: 1; }
.stat .lbl { font-weight: 600; color: inherit; margin-top: 6px; font-size: 0.95rem; }

/* ---------- Detail-page helpers ---------- */
.page-hero { background: var(--ice); padding: 56px 0 48px; border-bottom: 1px solid var(--line); }
.page-hero .lede { color: var(--slate); font-size: 1.1rem; max-width: 720px; margin-top: 14px; }
.crumbs { font-size: 0.85rem; color: var(--slate); margin-bottom: 18px; }
.crumbs a { color: var(--slate); }

.split { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: start; }

.checklist { list-style: none; display: grid; gap: 12px; }
.checklist li { padding-left: 30px; position: relative; }
.checklist li::before {
  content: "";
  position: absolute;
  left: 0; top: 7px;
  width: 14px; height: 8px;
  border-left: 3px solid var(--orange);
  border-bottom: 3px solid var(--orange);
  transform: rotate(-45deg);
}

.aside-panel {
  background: var(--ice);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}
.aside-panel h3 { margin-bottom: 10px; }
.aside-panel .price { font-size: 1.7rem; font-weight: 800; color: var(--navy); }
.aside-panel .price small { font-size: 0.85rem; font-weight: 600; color: var(--slate); }

.framework-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }

table.plain {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
table.plain th, table.plain td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); }
table.plain th { color: var(--navy); font-weight: 700; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--navy), var(--blue));
  color: var(--white);
  padding: 60px 0;
}
.cta-band h2 { color: var(--white); }
.cta-band .cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.cta-band p { color: #D3E4F4; margin: 8px 0 0; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--deep);
  color: #AFC6DB;
  border-top: 4px solid var(--orange);
  padding: 56px 0 28px;
  font-size: 0.93rem;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 36px; }
.site-footer h4 { color: var(--white); font-size: 0.95rem; margin-bottom: 12px; letter-spacing: 0.04em; text-transform: uppercase; }
.site-footer ul { list-style: none; display: grid; gap: 8px; }
.site-footer a { color: #AFC6DB; }
.site-footer a:hover { color: var(--white); }
.footer-base { border-top: 1px solid rgba(255,255,255,0.15); padding-top: 20px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ---------- Forms (contact) ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: 0.9rem; color: var(--navy); }
.field input, .field select, .field textarea {
  font: inherit;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 3px solid rgba(46,117,182,0.35);
  border-color: var(--blue);
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }

  .nav-toggle { display: block; }
  .nav-menu {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 16px 20px;
    gap: 2px;
    box-shadow: var(--shadow);
  }
  .nav-menu.open { display: flex; }
  .dropdown { position: static; box-shadow: none; border: 0; border-left: 2px solid var(--line); border-radius: 0; margin-left: 12px; }
  .nav-cta { margin: 10px 0 0; text-align: center; }
  .hero { padding: 60px 0 52px; }
}
