/* === SEWP VI Contractor Website — Base Styles === */
/* Design: Federal Dossier — ink navy + brass, serif/mono hierarchy, hairline borders. WCAG 2.0 AA compliant. */

:root {
  --ink-950: #0b1220;
  --ink-900: #101c33;
  --ink-800: #16223b;
  --ink-700: #1c2b47;
  --brass-300: #e8d4a8;
  --brass-500: #c99a4a;
  --brass-700: #8a6423;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --white: #ffffff;
  --amber-50: #fff7ed;
  --amber-200: #fed7aa;
  --amber-800: #9a3412;
  --green-600: #059669;
  --info-bg: #eef2f6;
  --info-border: #c7d2de;
  --info-text: var(--ink-900);
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-serif: 'Source Serif 4', Georgia, serif;
  --font-mono: 'IBM Plex Mono', 'SFMono-Regular', Consolas, monospace;
}

/* === Reset & Base === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  color: var(--slate-800);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brass-700); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus { outline: 2px solid var(--brass-700); outline-offset: 2px; }

img { max-width: 100%; height: auto; }
.icon { display: inline-block; vertical-align: -3px; flex-shrink: 0; }

/* === Skip to Content (508) === */
.skip-to-content {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--brass-700);
  color: white;
  padding: 8px 16px;
  z-index: 1000;
  font-weight: 600;
  transition: top 0.1s;
}
.skip-to-content:focus { top: 0; text-decoration: none; color: white; }

/* === Top Bar === */
.sdvosb-banner {
  background: var(--ink-800);
  color: var(--slate-200);
  text-align: center;
  padding: 6px 16px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--brass-700);
}

/* === Header / Nav === */
.site-header {
  background: var(--ink-900);
  color: white;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 24px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  width: 28px;
  height: 28px;
  background: var(--brass-700);
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 12px;
}

.logo-text {
  font-weight: 700;
  font-size: 0.875rem;
  color: white;
}
.logo-text:hover { text-decoration: none; }

.main-nav {
  display: flex;
  gap: 20px;
  align-items: center;
}

.main-nav a {
  color: var(--slate-300);
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
.main-nav a:hover, .main-nav a:focus { color: white; text-decoration: none; }
.main-nav a.active { color: var(--brass-500); border-bottom-color: var(--brass-500); }

/* Hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  padding: 4px;
  line-height: 0;
}

/* === Hero === */
.hero {
  background: var(--ink-900);
  color: white;
  padding: 48px 24px 40px;
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
}

.hero-text { max-width: 640px; }

.hero-label {
  font-size: 0.75rem;
  color: var(--brass-500);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 4px;
}

.hero h1 {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 2.125rem;
  line-height: 1.15;
  margin-bottom: 16px;
  color: white;
}

.hero p {
  color: var(--slate-200);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 24px;
  max-width: 56ch;
}

/* Contract detail tags */
.contract-tags {
  display: flex;
  gap: 20px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.contract-tag {
  display: flex;
  flex-direction: column;
}

.contract-tag .label {
  font-size: 0.6875rem;
  color: var(--slate-500);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.contract-tag .value {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.875rem;
  color: white;
}

/* CTAs */
.cta-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 28px;
  border-radius: 3px;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  border: none;
  transition: background 0.15s, opacity 0.15s;
}
.btn:hover { text-decoration: none; opacity: 0.9; }
.btn:focus { outline: 2px solid var(--brass-500); outline-offset: 2px; }

.btn-primary { background: var(--brass-700); color: white; }
.btn-secondary { background: transparent; border: 1px solid var(--slate-600); color: var(--slate-300); }
.btn-secondary:hover { border-color: var(--slate-400); color: white; }

/* Badge column */
.hero-badges {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.seal-badge {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  border: 2px solid var(--brass-500);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: var(--font-mono);
}
.seal-badge .seal-main { font-size: 0.75rem; letter-spacing: 1px; color: var(--brass-500); font-weight: 600; }
.seal-badge .seal-sub { font-size: 0.5625rem; letter-spacing: 1.5px; color: var(--slate-400); margin-top: 2px; }

.cert-badges {
  display: flex;
  gap: 4px;
}
.cert-badge {
  background: var(--ink-700);
  padding: 4px 8px;
  border-radius: 3px;
  font-size: 0.5625rem;
  color: var(--slate-400);
  font-weight: 600;
}

/* POC bar */
.poc-bar {
  margin-top: 24px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 4px;
  padding: 12px 20px;
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 0.8125rem;
}

.poc-bar .poc-label { color: var(--slate-400); }
.poc-bar .poc-name { color: var(--slate-200); font-weight: 500; }
.poc-bar .poc-email { color: var(--brass-500); }

/* === Main Content === */
.page-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px;
}

.breadcrumb {
  font-size: 0.8125rem;
  color: var(--slate-500);
  margin-bottom: 16px;
}
.breadcrumb a { color: var(--slate-500); }
.breadcrumb .current { color: var(--slate-800); font-weight: 500; }

.page-header {
  margin-bottom: 28px;
}
.page-header-split {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 12px;
}
.page-header h1 {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.75rem;
  color: var(--slate-800);
  margin-bottom: 4px;
}
.page-header .meta {
  font-size: 0.8125rem;
  color: var(--slate-500);
}
.page-header .meta a { color: var(--brass-700); }

.content-body {
  max-width: 720px;
}

.max-w-600 { max-width: 600px; }
.max-w-700 { max-width: 700px; }
.mt-4 { margin-top: 4px; }
.mt-8 { margin-top: 8px; }
.mt-10 { margin-top: 10px; }
.mt-12 { margin-top: 12px; }
.mt-20 { margin-top: 20px; }
.mt-24 { margin-top: 24px; }
.mb-0 { margin-bottom: 0; }
.mb-8 { margin-bottom: 8px; }
.mb-12 { margin-bottom: 12px; }
.mb-24 { margin-bottom: 24px; }
.text-center { text-align: center; }
.text-muted { color: var(--slate-500); font-weight: 400; }
.email-sm { font-size: 0.875rem; }
.btn-no-shrink { flex-shrink: 0; }
.callout-pad-20 { padding: 20px; margin-bottom: 24px; }
.callout-pad-24 { padding: 24px; margin-bottom: 24px; }
.section-heading-sm { font-size: 1.125rem; margin-bottom: 16px; }
.section-heading-inline { font-size: 1rem; margin-bottom: 8px; border: none; padding: 0; display: block; }
.list-compact { font-size: 0.8125rem; color: var(--slate-600); line-height: 1.7; padding-left: 20px; margin-bottom: 12px; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* === Quick Link Cards === */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin: 24px 0;
}

.card {
  border: 1px solid var(--slate-200);
  border-radius: 4px;
  padding: 24px;
  background: var(--slate-100);
  transition: border-color 0.15s;
}
.card:hover { border-color: var(--brass-300); }

.card h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--slate-800);
  margin-bottom: 6px;
}
.card p {
  font-size: 0.875rem;
  color: var(--slate-600);
  margin-bottom: 12px;
  line-height: 1.5;
}
.card .card-link {
  font-size: 0.8125rem;
  color: var(--brass-700);
  font-weight: 600;
}

/* === Lead prose (home page intro, replaces bullet-list "why us") === */
.lead-prose {
  padding: 28px 0;
  border-top: 1px solid var(--slate-200);
  border-bottom: 1px solid var(--slate-200);
}
.lead-prose h2 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.125rem;
  margin-bottom: 10px;
}
.lead-prose p {
  font-size: 1rem;
  color: var(--slate-700);
  line-height: 1.7;
  max-width: 68ch;
}

/* === FAQ === */
.faq-list { display: grid; gap: 8px; margin: 16px 0; }

.faq-item {
  border: 1px solid var(--slate-200);
  border-radius: 4px;
  overflow: hidden;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 12px 16px;
  background: none;
  border: none;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--slate-800);
  cursor: pointer;
  text-align: left;
}
.faq-question:hover { background: var(--slate-100); }
.faq-question:focus { outline: 2px solid var(--brass-700); outline-offset: -2px; }
.faq-question .arrow { color: var(--slate-400); transition: transform 0.2s; }
.faq-question[aria-expanded="true"] .arrow { transform: rotate(180deg); }

.faq-answer {
  padding: 0 16px 12px;
  font-size: 1rem;
  color: var(--slate-600);
  display: none;
}
.faq-answer.open { display: block; }

/* === Section (content pages) === */
.content-section {
  margin-bottom: 32px;
}
.content-section h2 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.125rem;
  color: var(--slate-800);
  border-bottom: 2px solid var(--brass-700);
  padding-bottom: 6px;
  display: inline-block;
  margin-bottom: 14px;
}
.content-section h3 {
  font-size: 0.8125rem;
  color: var(--slate-700);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
  margin-bottom: 8px;
}
.content-section p {
  font-size: 1rem;
  color: var(--slate-600);
  line-height: 1.7;
  margin-bottom: 12px;
}

/* Info callout */
.callout {
  background: var(--slate-100);
  border: 1px solid var(--slate-200);
  border-radius: 4px;
  padding: 14px;
  margin-bottom: 12px;
  font-size: 1rem;
}

.callout-warning {
  background: var(--amber-50);
  border-color: var(--amber-200);
  color: var(--amber-800);
}

.callout-info {
  background: var(--info-bg);
  border-color: var(--info-border);
  color: var(--info-text);
}

/* Detail grid */
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 20px;
  font-size: 0.8125rem;
  padding: 14px;
  background: var(--slate-100);
  border: 1px solid var(--slate-200);
  border-radius: 4px;
  margin-bottom: 12px;
}
.detail-grid strong { font-weight: 600; }
.mono { font-family: var(--font-mono); }

/* Step list */
.step-list { padding: 16px; background: var(--slate-100); border: 1px solid var(--slate-200); border-radius: 4px; margin-bottom: 12px; }
.step {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
  align-items: flex-start;
  font-size: 0.9375rem;
}
.step:last-child { margin-bottom: 0; }
.step-number {
  width: 24px;
  height: 24px;
  background: var(--brass-700);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}
.step strong { display: block; }
.step span { color: var(--slate-500); font-size: 0.8125rem; }

/* POC Table */
.poc-table {
  width: 100%;
  background: var(--slate-100);
  border: 1px solid var(--slate-200);
  border-radius: 4px;
  overflow: hidden;
  font-size: 0.8125rem;
  margin-bottom: 12px;
}
.poc-table caption {
  caption-side: top;
}
.poc-table .poc-header tr,
.poc-table .poc-row {
  display: grid;
  grid-template-columns: 2fr 2fr 3fr;
}
.poc-table .poc-header th {
  padding: 8px 14px;
  background: var(--slate-200);
  font-weight: 600;
  color: var(--slate-600);
  text-align: left;
  border-bottom: 1px solid var(--slate-200);
}
.poc-table .poc-row td {
  padding: 8px 14px;
  border-bottom: 1px solid var(--slate-200);
}
.poc-table .poc-row:last-child { border-bottom: none; }

/* Product table */
.prod-table {
  border: 1px solid var(--slate-200);
  border-radius: 4px;
  overflow: hidden;
  font-size: 0.8125rem;
  margin-bottom: 16px;
}
.prod-table .prod-header {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr 1fr 1fr;
  padding: 10px 14px;
  background: var(--slate-200);
  font-weight: 600;
  color: var(--slate-600);
  border-bottom: 1px solid var(--slate-200);
}
.prod-table .prod-row {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr 1fr 1fr;
  padding: 10px 14px;
  border-bottom: 1px solid var(--slate-200);
}
.prod-table .prod-row:last-child { border-bottom: none; }
.prod-table .clin { color: var(--brass-700); font-weight: 500; font-family: var(--font-mono); }
.status-active { color: var(--green-600); font-weight: 500; }

/* Catalog filters */
.filter-bar {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.filter-input {
  flex: 1;
  min-width: 200px;
  border: 1px solid var(--slate-200);
  border-radius: 3px;
  padding: 10px 14px;
  font-size: 0.8125rem;
  color: var(--slate-800);
}
.filter-select {
  border: 1px solid var(--slate-200);
  border-radius: 3px;
  padding: 10px 14px;
  font-size: 0.8125rem;
  color: var(--slate-500);
  background: white;
}

.cat-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.cat-tab {
  padding: 6px 16px;
  border-radius: 3px;
  font-size: 0.8125rem;
  cursor: pointer;
  border: 1px solid transparent;
  background: var(--slate-100);
  color: var(--slate-600);
}
.cat-tab.active { background: var(--brass-700); color: white; border-color: var(--brass-700); }
.cat-tab:hover:not(.active) { background: var(--slate-200); }

/* Section nav */
.section-nav {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--slate-200);
  display: flex;
  justify-content: space-between;
  font-size: 0.8125rem;
}
.section-nav a { font-weight: 500; }

/* Page subtitle navigation (inline section links) */
.subnav {
  display: flex;
  gap: 8px;
  font-size: 0.75rem;
  padding: 4px 0 12px;
  flex-wrap: wrap;
}
.subnav a { color: var(--slate-400); font-family: var(--font-mono); }
.subnav a.active { color: var(--brass-700); font-weight: 500; }
.subnav .sep { color: var(--slate-300); }

/* === POC card (contact page) === */
.poc-card {
  margin-bottom: 14px;
}
.poc-card h3 {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--slate-800);
  margin-bottom: 6px;
}
.poc-card .poc-detail {
  background: var(--slate-100);
  border: 1px solid var(--slate-200);
  border-radius: 4px;
  padding: 10px;
  font-size: 0.9375rem;
}
.poc-card address { font-style: normal; }
.poc-detail .name { font-weight: 500; }
.poc-detail .role { color: var(--slate-500); }
.poc-detail .phone { color: var(--slate-500); }
.poc-detail .email { color: var(--brass-700); }

/* Resource card (resources page) */
.resource-card {
  background: var(--slate-100);
  border: 1px solid var(--slate-200);
  border-radius: 4px;
  padding: 12px;
  margin-bottom: 10px;
}
.resource-card .res-cat {
  font-size: 0.625rem;
  color: var(--slate-500);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}
.resource-card .res-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--slate-800);
}
.resource-card .res-url {
  font-size: 0.875rem;
  color: var(--brass-700);
}
.resource-card .res-desc {
  font-size: 0.8125rem;
  color: var(--slate-500);
  margin-top: 2px;
}

/* === Footer === */
.site-footer {
  background: var(--ink-900);
  color: var(--slate-400);
  padding: 28px 24px;
  text-align: center;
  font-size: 0.75rem;
}
.footer-links {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.footer-links a { color: var(--brass-500); font-size: 0.75rem; }
.footer-links a:hover { color: white; }
.footer-meta { font-size: 0.6875rem; color: var(--slate-500); margin-top: 6px; }

/* === Section 508 conformance highlights === */
.s508-detail { display: grid; gap: 8px; font-size: 0.9375rem; margin-bottom: 16px; }
.s508-detail li { list-style: none; padding: 0; margin: 0; }
.s508-detail strong { display: inline-block; min-width: 120px; }

/* === Responsive === */
@media (max-width: 768px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--ink-900);
    padding: 16px 24px;
    gap: 12px;
    border-top: 1px solid rgba(255,255,255,0.1);
  }
  .main-nav.open { display: flex; }

  .nav-toggle { display: block; }

  .hero-inner { flex-direction: column; }

  .hero h1 { font-size: 1.5rem; }

  .contract-tags { gap: 12px; }

  .hero-badges { flex-direction: row; width: 100%; justify-content: center; }

  .card-grid { grid-template-columns: 1fr; }

  .detail-grid { grid-template-columns: 1fr; }

  .poc-table .poc-header, .poc-table .poc-row { grid-template-columns: 1fr 1fr 1.5fr; }

  .prod-table .prod-header, .prod-table .prod-row {
    grid-template-columns: 1fr 1.5fr 1fr 1fr 1fr;
    font-size: 0.6875rem;
  }

  .filter-bar { flex-direction: column; }
  .filter-input { min-width: unset; }
}

/* === Print === */
@media print {
  .site-header { position: static; }
  .sdvosb-banner { display: none; }
  .hero { padding: 24px; }
  .hero-badges { display: none; }
  .poc-bar { display: none; }
  .site-footer { page-break-after: always; }
}

@media (forced-colors: active) {
  * {
    forced-color-adjust: auto;
  }

  a,
  .btn,
  .nav-toggle,
  .faq-question,
  .cat-tab,
  .filter-input,
  .filter-select {
    border: 1px solid ButtonText;
  }

  .main-nav a.active,
  .subnav a.active,
  .cat-tab.active,
  .btn-primary,
  .callout-info,
  .callout-warning {
    forced-color-adjust: none;
    background: Canvas;
    color: ButtonText;
    border-color: ButtonText;
  }
}
