/* ==========================================================================
   Onyx Consulting Services, LLC — NASA SEWP VI Contract Website
   Look & feel derived from https://onyxconsults.com/
   Design tokens:
     Display font ...... Poppins (headings), Onyx uses Poppins + Helvetica
     Body font ......... Roboto / Helvetica fallback stack
     Light surface ..... #f2f2f2  (page), #ffffff (cards)
     Dark surface ...... #141414 / #1c1c1c (Onyx black)
     Ink (headings) .... #333333
     Body text ......... #4a4a4a  (darkened from onyx #757575 for 508/AA contrast)
     Accent ............ #0079d6  (SEWP/Onyx blue)
     Steel ............. #96a6b4
   Section 508 / WCAG 2.1 AA: semantic landmarks, skip link, visible focus,
   alt text, AA color contrast, keyboard-operable nav.
   ========================================================================== */

:root {
  --bg: #f2f2f2;
  --white: #ffffff;
  --ink: #2b2b2b;
  --body: #4a4a4a;
  --muted: #6b6b6b;
  --dark: #141414;
  --dark-2: #1f1f1f;
  --accent: #006cc0;   /* Onyx blue, darkened from #0079d6 to clear WCAG AA (>=4.5:1) as text/on buttons */
  --accent-dark: #005ba3;
  --steel: #96a6b4;
  --border: #dcdcdc;
  --radius: 4px;
  --shadow: 0 2px 14px rgba(0, 0, 0, 0.08);
  --maxw: 1120px;
  --font-display: "Poppins", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-body: "Roboto", Helvetica, Verdana, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--body);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 0.5em;
}

p { margin: 0 0 1em; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); text-decoration: underline; }
/* WCAG 1.4.1: links inside running text must not rely on color alone */
.prose a, .callout a, .lead a { text-decoration: underline; }

/* ---- Accessibility: skip link + focus ---------------------------------- */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: 10px 16px;
  z-index: 1000;
  border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; }

a:focus-visible,
button:focus-visible,
.btn:focus-visible,
.card:focus-within {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

/* ---- Layout helpers ---------------------------------------------------- */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 72px 0; }
.section--tight { padding: 48px 0; }
.section--dark { background: var(--dark); color: #cfd3d7; }
.section--dark h1, .section--dark h2, .section--dark h3 { color: #fff; }
.section--alt { background: var(--white); }

.eyebrow {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  margin: 0 0 0.6em;
}
.section--dark .eyebrow { color: var(--steel); }

.lead { font-size: 1.15rem; color: var(--muted); max-width: 60ch; }
.section--dark .lead { color: #b6bcc2; }

/* ---- Top bar + header ------------------------------------------------- */
.topbar {
  background: var(--dark);
  color: #b9c0c7;
  font-size: 0.82rem;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 40px;
  flex-wrap: wrap;
}
.topbar a { color: #dfe4e8; }
.topbar .topbar__tag { letter-spacing: 0.04em; }

.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 84px;
}
.brand { display: flex; align-items: center; gap: 14px; }
.brand img { height: 46px; width: auto; display: block; }
.brand__label {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
  font-size: 0.95rem;
  line-height: 1.15;
}
.brand__label span { display: block; color: var(--accent); font-size: 0.78rem; font-weight: 500; }

/* ---- Navigation ------------------------------------------------------- */
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px 12px;
  font-size: 1rem;
  cursor: pointer;
  color: var(--ink);
}
.main-nav ul {
  list-style: none;
  display: flex;
  gap: 6px;
  margin: 0;
  padding: 0;
}
.main-nav a {
  display: block;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--ink);
  padding: 10px 14px;
  border-radius: var(--radius);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.main-nav a:hover { background: var(--bg); text-decoration: none; }
.main-nav a[aria-current="page"] {
  color: var(--accent);
  box-shadow: inset 0 -3px 0 var(--accent);
}

/* ---- Buttons ---------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 13px 26px;
  border-radius: var(--radius);
  border: 2px solid var(--accent);
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; text-decoration: none; }
.btn--ghost { background: transparent; color: #fff; }
.btn--ghost:hover { background: rgba(255,255,255,0.12); }
.btn--dark { background: var(--dark); border-color: var(--dark); }
.btn--dark:hover { background: #000; border-color: #000; }

/* ---- Hero ------------------------------------------------------------- */
.hero {
  position: relative;
  background:
    linear-gradient(rgba(10,12,15,0.82), rgba(10,12,15,0.9)),
    radial-gradient(circle at 70% 30%, #2a3540, #0d0f12 70%);
  color: #fff;
  padding: 96px 0;
  overflow: hidden;
}
.hero__inner { max-width: 760px; position: relative; z-index: 2; }
.hero h1 {
  color: #fff;
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  letter-spacing: 0.01em;
  margin-bottom: 0.3em;
}
.hero h1 .accent { color: var(--steel); }
.hero p { color: #d3d8dd; font-size: 1.2rem; max-width: 58ch; }
.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  margin: 26px 0 32px;
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--steel);
}
.hero__meta strong { color: #fff; font-weight: 600; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

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

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 28px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.card h3 { font-size: 1.2rem; }
.card__icon {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--dark);
  color: #fff;
  font-size: 1.2rem;
  margin-bottom: 16px;
  font-weight: 700;
}
.card .btn-link {
  margin-top: auto;
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.82rem;
  letter-spacing: 0.05em;
}
.card .btn-link::after { content: " →"; }

.card-link { text-decoration: none; color: inherit; }
.card-link:hover { text-decoration: none; }
.card-link:hover .card { border-color: var(--accent); transform: translateY(-2px); transition: 0.15s; }

/* ---- Section heading block ------------------------------------------- */
.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }

/* ---- Content / prose pages ------------------------------------------- */
.prose { max-width: 820px; }
.prose h2 { margin-top: 1.6em; font-size: 1.7rem; }
.prose h3 { margin-top: 1.4em; font-size: 1.25rem; color: var(--accent-dark); }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: 0.5em; }

.page-hero {
  background: var(--dark);
  color: #fff;
  padding: 60px 0 54px;
}
.page-hero h1 { color: #fff; font-size: clamp(1.9rem, 4.5vw, 2.8rem); }
.page-hero p { color: #c4cad0; max-width: 62ch; margin-bottom: 0; }
.breadcrumb {
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 14px;
}
.breadcrumb a { color: var(--steel); }
.breadcrumb a:hover { color: #fff; }

/* ---- Callout / notice ------------------------------------------------- */
.callout {
  border-left: 4px solid var(--accent);
  background: #eef6fd;
  padding: 18px 22px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 0 0 1.5em;
}
.callout--warn { border-color: #c98a00; background: #fdf6e7; }
.callout p:last-child { margin-bottom: 0; }
.callout strong { color: var(--ink); }

.placeholder {
  color: var(--accent-dark);
  background: #eef6fd;
  padding: 0 4px;
  border-radius: 3px;
  font-style: italic;
  white-space: nowrap;
}

/* ---- Contact cards / tables ------------------------------------------ */
.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.contact-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 24px 24px;
  box-shadow: var(--shadow);
}
.contact-card h3 { margin-bottom: 2px; font-size: 1.15rem; }
.contact-card .role {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 14px;
}
.contact-card dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; font-size: 0.95rem; }
.contact-card dt { font-weight: 600; color: var(--ink); }
.contact-card dd { margin: 0; }

table.data {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1.5em;
  font-size: 0.95rem;
  background: var(--white);
}
table.data caption { text-align: left; font-weight: 600; color: var(--ink); margin-bottom: 8px; }
table.data th, table.data td { text-align: left; padding: 12px 14px; border: 1px solid var(--border); vertical-align: top; }
table.data thead th { background: var(--dark); color: #fff; font-family: var(--font-display); font-weight: 600; }
table.data tbody tr:nth-child(even) { background: #f7f9fb; }

/* ---- Resource / link lists ------------------------------------------- */
.link-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.link-list a.reslink {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 22px;
  color: var(--ink);
  box-shadow: var(--shadow);
}
.link-list a.reslink:hover { border-color: var(--accent); text-decoration: none; }
.link-list .reslink span.title { font-family: var(--font-display); font-weight: 600; }
.link-list .reslink span.desc { color: var(--muted); font-size: 0.9rem; display: block; font-weight: 400; }
.link-list .reslink .go { color: var(--accent); font-weight: 700; }

/* ---- Footer ----------------------------------------------------------- */
.site-footer {
  background: var(--white);
  color: var(--body);
  padding: 54px 0 28px;
  font-size: 0.92rem;
  border-top: 1px solid var(--border);
}
.site-footer a { color: var(--accent-dark); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; margin-bottom: 34px; }
.site-footer h2 { color: var(--ink); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer .brand img { height: 40px; margin-bottom: 14px; }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: var(--muted);
}

/* ---- Responsive ------------------------------------------------------- */
@media (max-width: 900px) {
  .grid--3, .grid--2, .contact-grid, .footer-grid { grid-template-columns: 1fr; }
  .nav-toggle { display: inline-block; }
  .main-nav {
    display: none;
    position: absolute;
    top: 84px; left: 0; right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    padding: 10px 16px;
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; gap: 2px; }
  .main-nav a { padding: 12px 10px; }
  .site-header .container { position: relative; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
