/* ============================================================
   SD Contracting LLC — capability + marketing site
   DGT navy / steel palette (shares the Dertinger Global
   Technologies house colors; ties to the SD Contracting logo's
   blue-and-silver identity). Accessible by default (WCAG-AA
   contrast, focus-visible, reduced-motion honored). Print
   stylesheet at the bottom renders the one-page federal
   capability statement.
   ============================================================ */

:root {
  --steel: #5f8ad0;          /* primary accent — cornflower steel */
  --steel-bright: #8fb2ee;   /* hover / emphasis */
  --navy: #070f1f;           /* deep navy ground */
  --navy-2: #0d1a30;         /* raised panel */
  --navy-3: #14243f;         /* card */
  --silver: #eef2f8;         /* primary text (AA on --navy) */
  --silver-dim: #a9b7cc;     /* secondary text */
  --silver-faint: #7d8ca6;   /* labels, meta */
  --hairline: #22314d;
  --pending: #7d8ca6;        /* not-yet-provided marker */
  --focus: #8fb2ee;
  --maxw: 1080px;
  --radius: 10px;
  --logo-h: 46px;
  --gap: clamp(1rem, 3vw, 2rem);
}

* { box-sizing: border-box; }

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

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

body {
  margin: 0;
  background: var(--navy);
  color: var(--silver);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: clamp(1rem, 0.95rem + 0.2vw, 1.075rem);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.code, code, .mono {
  font-family: ui-monospace, "SFMono-Regular", "Cascadia Code", "Roboto Mono", monospace;
  font-variant-ligatures: none;
  letter-spacing: 0.02em;
}

/* --- Skip link (508) --- */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--steel);
  color: var(--navy);
  padding: 0.6rem 1rem;
  font-weight: 700;
  z-index: 100;
}
.skip-link:focus { left: 0.5rem; top: 0.5rem; }

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

a { color: var(--steel-bright); text-underline-offset: 0.15em; }
a:hover { color: #b9d2f7; }

.wrap { width: min(100% - 2.5rem, var(--maxw)); margin-inline: auto; }

/* --- Top bar --- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--navy) 86%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--hairline);
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.6rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--silver);
}
.brand__logo {
  height: var(--logo-h);
  width: auto;
  display: block;
}
.brand__parent {
  font-size: 0.68rem;
  color: var(--silver-faint);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  max-width: 12ch;
  line-height: 1.25;
}
@media (max-width: 560px) { .brand__parent { display: none; } }
.topbar__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--steel);
  color: var(--navy);
  font-weight: 700;
  text-decoration: none;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  font-size: 0.9rem;
  border: 1px solid transparent;
  white-space: nowrap;
}
.topbar__cta:hover { background: var(--steel-bright); color: var(--navy); }
@media (max-width: 620px) { .topbar__cta { display: none; } }

/* --- Hero --- */
.hero {
  position: relative;
  padding-block: clamp(3rem, 10vw, 6.5rem) clamp(2rem, 6vw, 3.5rem);
  background:
    radial-gradient(120% 90% at 82% -10%, color-mix(in srgb, var(--steel) 26%, transparent), transparent 55%),
    linear-gradient(180deg, var(--navy-2), var(--navy));
  border-bottom: 1px solid var(--hairline);
  overflow: hidden;
}
/* faint blueprint grid accent */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(color-mix(in srgb, var(--steel) 9%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--steel) 9%, transparent) 1px, transparent 1px);
  background-size: 44px 44px;
  opacity: 0.5;
  pointer-events: none;
  mask-image: radial-gradient(120% 100% at 80% 0%, #000, transparent 70%);
}
.hero > .wrap { position: relative; z-index: 1; }
.hero__eyebrow {
  color: var(--steel-bright);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin: 0 0 0.9rem;
}
.hero h1 {
  font-size: clamp(2.1rem, 1.4rem + 4vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.01em;
  margin: 0 0 0.6rem;
  font-weight: 800;
}
.hero__tagline {
  font-size: clamp(1.1rem, 1rem + 0.8vw, 1.5rem);
  color: var(--silver-dim);
  max-width: 46ch;
  margin: 0 0 1.8rem;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  text-decoration: none;
  padding: 0.7rem 1.3rem;
  border-radius: 999px;
  font-size: 0.98rem;
  cursor: pointer;
  border: 1px solid var(--steel);
  transition: background 0.15s, color 0.15s;
}
.btn--primary { background: var(--steel); color: var(--navy); }
.btn--primary:hover { background: var(--steel-bright); }
.btn--ghost { background: transparent; color: var(--steel-bright); }
.btn--ghost:hover { background: color-mix(in srgb, var(--steel) 16%, transparent); }

/* Hero trust row */
.hero__trust {
  list-style: none;
  margin: 1.6rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.4rem;
  color: var(--silver-dim);
  font-size: 0.9rem;
  font-weight: 600;
}
.hero__trust li { display: inline-flex; align-items: center; gap: 0.55rem; }
.hero__trust li::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 2px;
  background: var(--steel);
  transform: rotate(45deg);
  flex: none;
}

/* --- Quick-facts strip: the identifiers a KO scans for --- */
.facts {
  background: var(--navy-2);
  border-bottom: 1px solid var(--hairline);
}
.facts__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--hairline);
  border-inline: 1px solid var(--hairline);
}
@media (max-width: 720px) { .facts__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 440px) { .facts__grid { grid-template-columns: 1fr; } }
.fact {
  background: var(--navy-2);
  padding: 1.1rem 1.2rem;
}
.fact__label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--silver-faint);
  margin: 0 0 0.35rem;
}
.fact__value { font-size: 1.05rem; font-weight: 700; margin: 0; }

/* --- Sections --- */
section[id] { scroll-margin-top: 5rem; }
.block { padding-block: clamp(2.5rem, 7vw, 4.5rem); }
.block + .block { border-top: 1px solid var(--hairline); }
.block__head { margin-bottom: 1.8rem; }
.block__kicker {
  color: var(--steel-bright);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.75rem;
  margin: 0 0 0.5rem;
}
.block h2 {
  font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.1rem);
  margin: 0;
  letter-spacing: -0.01em;
}

/* About / overview prose */
.prose { max-width: 68ch; color: var(--silver-dim); margin: 0 0 1rem; }
.prose--meta { color: var(--silver-faint); font-size: 0.95rem; }
.prose strong { color: var(--silver); }
.services__lead { font-size: clamp(1.05rem, 1rem + 0.5vw, 1.25rem); color: var(--silver); margin-bottom: 1.6rem; }

/* Services chips — the "we do everything" breadth */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.chip {
  background: var(--navy-3);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 0.5rem 1rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--silver);
  transition: border-color 0.15s, background 0.15s;
}
.chip:hover { border-color: var(--steel); background: color-mix(in srgb, var(--steel) 12%, var(--navy-3)); }

/* Competency / differentiator cards */
.list-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 1rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.list-grid li {
  background: var(--navy-2);
  border: 1px solid var(--hairline);
  border-left: 3px solid var(--steel);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
}
.list-grid li strong { display: block; margin-bottom: 0.25rem; }
.list-grid li span { color: var(--silver-dim); font-size: 0.95rem; }

/* Past performance */
.perf { display: grid; gap: 1rem; }
.perf__item {
  background: var(--navy-2);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 1.2rem 1.3rem;
  display: grid;
  gap: 0.3rem;
}
.perf__top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  align-items: baseline;
}
.perf__client { font-weight: 700; font-size: 1.1rem; }
.perf__meta { color: var(--silver-faint); font-size: 0.85rem; }
.perf__scope { color: var(--silver-dim); }

/* Company data definition list */
.data-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 0.9rem 2rem;
  margin: 0;
}
.data-grid div {
  display: grid;
  gap: 0.2rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--hairline);
}
.data-grid dt {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--silver-faint);
}
.data-grid dd { margin: 0; font-weight: 600; }

/* Pending / not-yet-provided marker */
.pending {
  color: var(--pending);
  font-style: italic;
  font-weight: 500;
}
.pending::before { content: "— "; }

/* Contact */
.contact-card {
  background: var(--navy-2);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  display: grid;
  gap: 1.2rem;
}
.contact-card__poc { font-size: 1.2rem; font-weight: 700; }
.contact-lines { display: grid; gap: 0.5rem; margin: 0; }
.contact-lines a { font-weight: 600; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--hairline);
  padding-block: 2rem;
  color: var(--silver-faint);
  font-size: 0.85rem;
}
.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
  align-items: center;
}
.site-footer a { color: var(--silver-dim); }

/* ============================================================
   PRINT — the one-page federal capability statement.
   Forces ink-efficient white paper, hides nav/CTAs, collapses
   to the classic single-sheet layout KOs expect.
   ============================================================ */
@media print {
  :root { --silver: #111; --silver-dim: #333; --silver-faint: #555; --pending: #666; --hairline: #ccc; }
  body { background: #fff; color: #111; font-size: 10.5pt; line-height: 1.35; }
  .topbar, .hero__actions, .hero__trust, .btn, .topbar__cta, .site-footer a.btn { display: none !important; }
  .hero { background: #fff; border-bottom: 2px solid var(--steel); padding-block: 0 0.5rem; }
  .hero::after { display: none; }
  .hero h1 { font-size: 22pt; color: #111; }
  .hero__eyebrow { color: #1a396b; }
  .hero__tagline { color: #333; font-size: 11pt; }
  .facts, .fact { background: #fff !important; }
  .facts__grid { border: 1px solid #ccc; }
  .chip { background: #fff !important; border: 1px solid #999; color: #111; }
  .block { padding-block: 0.6rem; page-break-inside: avoid; }
  .block + .block { border-top: 1px solid #ccc; }
  .list-grid li, .perf__item, .contact-card {
    background: #fff !important;
    border: 1px solid #ccc;
    page-break-inside: avoid;
  }
  a { color: #111; text-decoration: none; }
  .wrap { width: 100%; }
  @page { margin: 1.2cm; }
}
