/* ============================================================
   FND CONTRACTS — SITE STYLESHEET
   Base element styles + component classes, ported from the
   FND Contracts Design System React components (Badge, Button,
   Card, Callout, Input, Select) into plain CSS so the public
   site renders without a JavaScript runtime.
   ============================================================ */

/* ============ 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: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: var(--weight-regular);
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--text-body);
  background: var(--surface-page);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 0.4em;
  font-family: var(--font-display);
  color: var(--text-strong);
  line-height: var(--leading-heading);
  letter-spacing: var(--tracking-snug);
  text-wrap: balance;
}

h1 { font-size: var(--text-4xl); font-weight: var(--weight-black); letter-spacing: var(--tracking-tight); }
h2 { font-size: var(--text-3xl); font-weight: var(--weight-bold); }
h3 { font-size: var(--text-2xl); font-weight: var(--weight-bold); }
h4 { font-size: var(--text-xl);  font-weight: var(--weight-bold); }
h5 { font-size: var(--text-lg);  font-weight: var(--weight-semibold); }
h6 { font-size: var(--text-base); font-weight: var(--weight-semibold); letter-spacing: var(--tracking-wide); text-transform: uppercase; }

p { margin: 0 0 1em; text-wrap: pretty; }

a { color: var(--text-link); text-decoration: none; }
a:hover { text-decoration: underline; }

strong { font-weight: var(--weight-semibold); color: var(--text-strong); }

code, kbd, samp { font-family: var(--font-mono); font-size: 0.92em; }

img, svg { max-width: 100%; }

/* Component classes below set display; keep [hidden] authoritative. */
[hidden] { display: none !important; }

hr { border: 0; height: 1px; background: var(--divider); margin: var(--space-6) 0; }

::selection { background: var(--red-100); color: var(--red-800); }

:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: var(--radius-sm);
}

/* Viewport-scoped copy. The mobile design tightens several strings; rather
   than duplicating the text (and the crawlable content with it), the
   desktop-only clauses are wrapped and hidden below the breakpoint. */
.sm-only { display: none; }

/* Skip link — keyboard users bypass the nav */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: var(--z-modal);
  background: var(--brand-red);
  color: #fff;
  padding: 12px 20px;
  font-weight: var(--weight-bold);
  border-radius: 0 0 var(--radius-md) 0;
}
.skip-link:focus {
  left: 0;
  text-decoration: none;
}

/* ============ BRAND HELPERS ============ */

.eyebrow {
  font-family: var(--font-body);
  font-weight: var(--weight-bold);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--brand-red);
}
.eyebrow--blue { color: var(--brand-blue); }
.eyebrow--gold { color: var(--gold-300); }

/* Restrained horizontal grain that nods to the logo circle.
   Use on strategic panels, never under body copy. */
.grain-panel {
  background-image:
    repeating-linear-gradient(0deg,
      rgba(255, 255, 255, 0.022) 0px,
      rgba(255, 255, 255, 0.022) 1px,
      transparent 1px,
      transparent 3px),
    repeating-linear-gradient(0deg,
      rgba(0, 0, 0, 0.05) 0px,
      rgba(0, 0, 0, 0.05) 2px,
      transparent 2px,
      transparent 7px);
}

/* ============ LAYOUT ============ */

.container {
  width: 100%;
  max-width: var(--container-lg);
  margin-inline: auto;
  padding-inline: 32px;
}

.section { padding-block: 80px; }
.section--tight { padding-block: 56px; }
.section--sunken { background: var(--surface-sunken); }
.section--card { background: var(--surface-card); }
.section--navy { background: var(--blue-900); color: #fff; }
.section--navy-mid { background: var(--blue-800); color: #fff; }
.section--red { background: var(--brand-red); }

.section--navy h1,
.section--navy h2,
.section--navy h3,
.section--navy-mid h1,
.section--navy-mid h2,
.section--navy-mid h3,
.section--red h1,
.section--red h2,
.section--red h3 { color: #fff; }

/* min() guards the track floor so a narrow viewport can never be
   forced wider than itself by an auto-fit minimum. */
.grid { display: grid; gap: 20px; }
.grid--2  { grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); }
.grid--3  { grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); }
.grid--4  { grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); }
.grid--wide-gap { gap: 48px; }
.grid--top { align-items: start; }

.stack { display: flex; flex-direction: column; }
.stack--sm { gap: 12px; }
.stack--md { gap: 20px; }

.row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.row--between {
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.lead {
  font-size: var(--text-md);
  color: var(--text-muted);
  line-height: 1.6;
}
.section--navy .lead,
.section--navy-mid .lead { color: var(--blue-200); }

.measure { max-width: 680px; }
.measure--narrow { max-width: 620px; }

/* ============ HEADER ============ */

.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding-block: 10px;
}

.site-header__logo {
  display: flex;
  align-items: center;
  flex: none;
}
.site-header__logo img,
.site-header__logo svg { height: 38px; display: block; width: auto; }

/* Compact lockup: brand mark + stacked wordmark. Swaps in for the wide
   lockup on small screens, where 104px of horizontal logo is worth more
   as headroom for the nav trigger. */
.logo-compact {
  display: none;
  align-items: center;
  gap: 9px;
}
.logo-compact img { width: 30px; height: 30px; flex: none; }
.logo-compact__text { display: flex; flex-direction: column; line-height: 1; }
.logo-compact__fnd {
  font-family: var(--font-display);
  font-weight: var(--weight-black);
  font-size: 17px;
  letter-spacing: -0.02em;
  color: var(--blue-900);
}
.logo-compact__contracts {
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
  font-size: 8px;
  letter-spacing: 0.24em;
  color: var(--brand-red);
}

/* Nav trigger — hidden until the drawer breakpoint, and only ever shown
   when JS is available to operate it. */
.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  flex: none;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--blue-900);
  cursor: pointer;
  padding: 0;
}
.nav-toggle:hover { background: var(--blue-50); }
.nav-toggle__close { display: none; }
[data-nav-open] .nav-toggle__open { display: none; }
[data-nav-open] .nav-toggle__close { display: block; }

.site-nav {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}

.site-nav a {
  font-size: 15px;
  font-weight: var(--weight-semibold);
  color: var(--text-muted);
  text-decoration: none;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.site-nav a:hover { color: var(--brand-blue); text-decoration: none; }
.site-nav a[aria-current="page"] {
  color: var(--brand-blue);
  border-bottom-color: var(--brand-red);
}

/* ============ BUTTON ============ */

.btn {
  display: inline-flex;
  width: auto;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: var(--weight-semibold);
  line-height: 1;
  letter-spacing: 0.01em;
  border-radius: var(--radius-md);
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  white-space: nowrap;
  padding: 10px 20px;
  font-size: var(--text-base);
  min-height: 44px;
  transition:
    background var(--duration-fast) var(--ease-standard),
    transform var(--duration-fast) var(--ease-standard),
    box-shadow var(--duration-fast) var(--ease-standard);
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }

.btn--sm { padding: 7px 14px; font-size: var(--text-sm); gap: 6px; min-height: 34px; }
.btn--lg { padding: 14px 28px; font-size: var(--text-md); gap: 10px; min-height: 54px; }
.btn--full { display: flex; width: 100%; }

.btn--primary {
  background: var(--action);
  color: var(--text-on-red);
  border: 1px solid var(--action);
}
.btn--primary:hover { background: var(--action-hover); box-shadow: var(--shadow-md); color: #fff; }

.btn--secondary {
  background: var(--brand-blue);
  color: var(--text-inverse);
  border: 1px solid var(--brand-blue);
}
.btn--secondary:hover { background: var(--action-blue-hover); box-shadow: var(--shadow-md); color: #fff; }

.btn--outline {
  background: transparent;
  color: var(--brand-blue);
  border: 1.5px solid var(--border-strong);
}
.btn--outline:hover { background: var(--blue-50); }

.btn--ghost {
  background: transparent;
  color: var(--brand-blue);
  border: 1px solid transparent;
}
.btn--ghost:hover { background: var(--blue-50); }

.btn--gold {
  background: var(--brand-gold);
  color: var(--text-on-gold);
  border: 1px solid var(--brand-gold);
}
.btn--gold:hover { background: var(--gold-600); box-shadow: var(--shadow-md); color: var(--text-on-gold); }

/* On navy panels the outline button inverts */
.btn--on-dark.btn--outline {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
}
.btn--on-dark.btn--outline:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

/* ============ CARD ============ */

.card {
  position: relative;
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-sm);
  padding: var(--space-5);
  transition:
    box-shadow var(--duration-base) var(--ease-standard),
    transform var(--duration-base) var(--ease-standard);
}
.card--red   { border-left: var(--border-accent-width) solid var(--brand-red); }
.card--gold  { border-left: var(--border-accent-width) solid var(--brand-gold); }
.card--blue  { border-left: var(--border-accent-width) solid var(--brand-blue); }
.card--interactive:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.card--pad-lg { padding: 30px; }
.card--pad-xl { padding: 32px; }

.card__title { margin: 0 0 8px; font-size: 19px; }
.card__body  { margin: 0; font-size: 15px; color: var(--text-muted); line-height: 1.55; }

/* ============ BADGE ============ */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-body);
  font-weight: var(--weight-bold);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  line-height: 1.2;
  padding: 3px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  white-space: nowrap;
}
.badge--sm { padding: 2px 8px; font-size: var(--text-2xs); gap: 4px; }

.badge--gold-solid { background: var(--brand-gold); color: var(--text-on-gold); }
.badge--red-solid  { background: var(--brand-red);  color: #fff; }
.badge--blue-solid { background: var(--brand-blue); color: #fff; }
/* Translucent chip used on the navy hero */
.badge--on-dark    { background: rgba(255, 255, 255, 0.12); color: #fff; }

/* ============ PERFORMER TAG ============ */
/* Marks each capability as FND's own work or a partner's. The distinction is
   contractual, so it is never left to the surrounding prose. */

.tag {
  display: inline-flex;
  margin-bottom: 10px;
  font-family: var(--font-body);
  font-size: 11.5px;
  font-weight: var(--weight-bold);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: var(--radius-sm);
}

/* ============ LAYER STRIP ============ */
/* Strategy / Management / Delivery — the three-layer operating model. */

.layer {
  border: 1px solid var(--border);
  border-top: 3px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 24px;
  background: var(--surface-sunken);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.layer__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.layer__name {
  font-family: var(--font-display);
  font-weight: var(--weight-black);
  font-size: 13px;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  /* --ink, not --rule: the gold rule is decorative, but gold text on this
     surface fails contrast. Delivery keeps the gold rule, navy label. */
  color: var(--ink);
}
.layer__who {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: var(--weight-bold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 7px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}
.layer__title {
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
  font-size: 19px;
  color: var(--text-strong);
}
.layer__desc { margin: 0; font-size: 14.5px; color: var(--text-muted); line-height: 1.55; }

/* ============ vCIO SCOPE LIST ============ */

.section--tint { background: var(--blue-50); }

.scope { display: flex; flex-direction: column; gap: 10px; }
.scope__item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 16px;
}
.scope__item > span:last-child { font-size: 15px; color: var(--text-body); line-height: 1.5; }
.scope__dot {
  width: 24px;
  height: 24px;
  flex: none;
  border-radius: var(--radius-pill);
  background: var(--blue-100);
  color: var(--brand-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}
.scope__note {
  margin: 4px 0 0;
  font-size: 13.5px;
  color: var(--text-subtle);
  line-height: 1.5;
  font-style: italic;
}

/* ============ CALLOUT ============ */

.callout {
  display: flex;
  gap: 12px;
  border-left: var(--border-accent-width) solid var(--info-600);
  background: var(--blue-50);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
}
.callout--success { background: var(--success-100); border-left-color: var(--success-600); }
.callout--gold    { background: var(--gold-50);     border-left-color: var(--brand-gold); }
.callout__title {
  font-weight: var(--weight-bold);
  font-size: var(--text-sm);
  color: var(--success-600);
  margin-bottom: 3px;
}
.callout--gold .callout__title { color: var(--gold-700); }
.callout__body {
  font-size: var(--text-sm);
  color: var(--text-body);
  line-height: 1.55;
  margin: 0;
}

/* ============ ICON TILES ============ */

.icon-tile {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
.icon-tile--sq {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--blue-50);
  color: var(--brand-blue);
}
.icon-tile--sq-lg {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: var(--red-50);
  color: var(--brand-red);
}
.icon-tile--dot {
  width: 26px;
  height: 26px;
  border-radius: var(--radius-pill);
  background: var(--red-50);
  color: var(--brand-red);
}
.icon-tile--dot-blue {
  width: 30px;
  height: 30px;
  border-radius: var(--radius-pill);
  background: var(--blue-100);
  color: var(--brand-blue);
}

.tick-list { display: flex; flex-direction: column; gap: 12px; }
.tick-list__item { display: flex; gap: 12px; align-items: flex-start; }
.tick-list__item > span:last-child { font-size: 15px; color: var(--text-body); line-height: 1.55; }

/* ============ FORM FIELDS ============ */

.field { display: flex; flex-direction: column; gap: 6px; }

.field__label {
  font-family: var(--font-body);
  font-weight: var(--weight-semibold);
  font-size: var(--text-sm);
  color: var(--text-strong);
}
.field__req { color: var(--brand-red); margin-left: 3px; }

.field__hint { font-size: var(--text-xs); color: var(--text-muted); }

.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--text-body);
  background: var(--surface-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 11px 12px;
  outline: none;
  transition:
    border-color var(--duration-fast),
    box-shadow var(--duration-fast);
}
.field textarea { resize: vertical; line-height: 1.5; min-height: 110px; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--blue-500);
  box-shadow: var(--focus-ring);
}

/* ============ CONTACT ROWS ============ */
/* The email row is a link across its whole area, not just the address —
   on a phone this is the primary conversion action. */

.contact-row {
  display: flex;
  gap: 14px;
  align-items: center;
  min-height: 48px;
  text-decoration: none;
  color: inherit;
  border-radius: var(--radius-md);
}
a.contact-row:hover { text-decoration: none; }
a.contact-row:hover .contact-row__value { color: var(--text-link); }
.contact-row__label {
  display: block;
  font-size: 13px;
  font-weight: var(--weight-bold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-subtle);
}
.contact-row__value {
  display: block;
  font-size: 16px;
  font-weight: var(--weight-semibold);
  color: var(--text-strong);
}

/* Inline text link sized to stay a comfortable tap target */
.inline-cta {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  font-size: 14px;
  font-weight: var(--weight-semibold);
  color: var(--text-link);
}

/* ============ NAICS TABLE ============ */

.naics {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.naics__row {
  display: flex;
  gap: 16px;
  align-items: baseline;
  padding: 12px 18px;
  border-bottom: 1px solid var(--divider);
  background: var(--surface-card);
}
.naics__row:last-child { border-bottom: 0; }
.naics__code {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: var(--weight-semibold);
  color: var(--brand-blue);
  flex: none;
  width: 64px;
}
.naics__name { font-size: 14px; color: var(--text-body); flex: 1; }

/* ============ CREDENTIAL STRIP ============ */

.cred-strip {
  display: flex;
  gap: 10px 14px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  font-family: var(--font-body);
  font-weight: var(--weight-semibold);
  font-size: 14px;
  letter-spacing: var(--tracking-wide);
  color: var(--blue-100);
}
.cred-strip__sep { color: var(--gold-400); }
.cred-strip__mono { font-family: var(--font-mono); }

/* ============ STEP CARDS ============ */

.step {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
}
.step__n {
  font-family: var(--font-mono);
  font-weight: var(--weight-bold);
  font-size: 13px;
  color: var(--brand-red);
  margin-bottom: 8px;
}
.step__t {
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
  font-size: 16px;
  color: var(--text-strong);
  margin-bottom: 4px;
}
.step__d { margin: 0; font-size: 13.5px; color: var(--text-muted); line-height: 1.5; }

/* Boxed note tile, used for "what we bring today" */
.note-tile {
  padding: 16px 18px;
  background: var(--surface-sunken);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  font-size: 14.5px;
  color: var(--text-body);
  line-height: 1.5;
}

.value-tile {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 18px;
  background: var(--surface-sunken);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.value-tile__t {
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
  font-size: 15.5px;
  color: var(--text-strong);
}
.value-tile__d { margin: 2px 0 0; font-size: 14px; color: var(--text-muted); line-height: 1.5; }

/* Pull-quote chips on the partners hero */
.chip-dark {
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 7px 12px;
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
  font-size: 13px;
  color: var(--gold-300);
}

/* Gold left-rule "benefit" column on the capabilities cards */
.benefit {
  border-left: var(--border-accent-width) solid var(--gold-500);
  padding-left: 18px;
}
.benefit__label {
  font-size: 12px;
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--gold-700);
  margin-bottom: 6px;
}

/* ============ HERO ============ */

.hero { overflow: hidden; }
.hero__inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
  gap: 48px;
  align-items: center;
  padding-block: 88px;
}
.hero h1 {
  font-size: 56px;
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 0 0 20px;
}
.hero__lead {
  font-size: 19px;
  line-height: 1.55;
  color: var(--blue-200);
  max-width: 580px;
  margin: 0 0 30px;
}
.hero__mark {
  width: 280px;
  max-width: 100%;
  filter: drop-shadow(0 24px 48px rgba(0, 0, 0, 0.45));
}
.hero__art { display: flex; justify-content: center; }

.page-hero { padding-block: 64px; }
.page-hero h1 { font-size: 44px; margin: 0 0 14px; }

/* ============ FOOTER ============ */

.site-footer {
  background: var(--blue-950);
  color: #fff;
}
.site-footer__inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  gap: 40px;
  padding-block: 56px 36px;
}
.site-footer__inner img,
.site-footer__inner svg { height: 40px; margin-bottom: 16px; width: auto; display: block; }
.site-footer__blurb {
  color: var(--blue-200);
  font-size: 14px;
  line-height: 1.6;
  max-width: 280px;
  margin: 0;
}
.site-footer__head {
  font-weight: var(--weight-bold);
  font-size: 12px;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--gold-300);
  margin-bottom: 14px;
}
.site-footer__links { display: flex; flex-direction: column; gap: 9px; }
.site-footer__links a,
.site-footer__contact a { color: var(--blue-200); font-size: 14px; }
.site-footer__links a:hover,
.site-footer__contact a:hover { color: #fff; }
.site-footer__contact {
  display: flex;
  flex-direction: column;
  gap: 9px;
  color: var(--blue-200);
  font-size: 14px;
}
.site-footer__contact a {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
}
.site-footer__legal { border-top: 1px solid rgba(255, 255, 255, 0.1); }
.site-footer__legal .container {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-block: 18px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--blue-300);
}

/* ============ RESPONSIVE ============ */

/* ============ DRAWER NAV (<= 900px) ============
   The inline nav is replaced by a disclosure drawer. Without JS the nav
   stays visible and stacked, so the site is never navigation-less; the
   `js` class (set in <head>, before paint) opts into the collapsed state. */

@media (max-width: 900px) {
  .site-header__inner {
    flex-wrap: wrap;
    gap: 12px 20px;
    padding-block: 0;
    min-height: 60px;
  }
  /* Only render the trigger when JS can operate it — otherwise the nav is
     already expanded and the button would be a dead control. */
  .js .nav-toggle { display: flex; }
  .site-header__cta { display: none; }

  .site-nav {
    order: 3;
    width: 100%;
    min-width: 0;
    flex-direction: column;
    gap: 2px;
    border-top: 1px solid var(--divider);
    padding: 10px 0 18px;
  }
  .site-nav a {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: var(--weight-bold);
    color: var(--text-body);
    padding: 13px 10px;
    border-radius: 8px;
    border-bottom: 0;
    border-left: 3px solid transparent;
    min-height: 48px;
    display: flex;
    align-items: center;
  }
  .site-nav a[aria-current="page"] {
    color: var(--brand-blue);
    background: var(--blue-50);
    border-left-color: var(--brand-red);
  }
  .site-nav__cta { display: block; margin-top: 12px; }
  .site-nav__cta .btn { width: 100%; min-height: 48px; }

  /* JS present: collapse by default, reveal when the trigger is pressed. */
  .js .site-nav { display: none; }
  .js .site-header[data-nav-open] .site-nav { display: flex; }
}

@media (min-width: 901px) {
  .site-nav__cta { display: none; }
}

/* ============ MOBILE TREATMENT (<= 720px) ============
   Type scale, spacing, and stacking from FND Website (Mobile).dc.html. */

@media (max-width: 720px) {
  .lg-only { display: none; }
  .sm-only { display: inline; }

  .container { padding-inline: 20px; }

  /* Compact header lockup */
  .site-header__logo img { display: none; }
  .logo-compact { display: flex; }

  /* Section rhythm */
  .section { padding-block: 40px; }
  .section--tight { padding-block: 30px; }

  /* Hero — text only; the brand mark costs a screenful of scroll here */
  .hero__inner { padding-block: 40px 44px; gap: 24px; }
  .hero__art { display: none; }
  .hero h1 { font-size: 34px; line-height: 1.1; letter-spacing: -0.02em; margin-bottom: 14px; }
  .hero__lead { font-size: 16px; line-height: 1.55; margin-bottom: 24px; }

  .page-hero { padding-block: 36px; }
  .page-hero h1 { font-size: 30px; line-height: 1.15; margin-bottom: 12px; }

  h2 { font-size: 25px; line-height: 1.2; }
  h3 { font-size: 19px; line-height: 1.25; }
  .eyebrow { font-size: 11px; }
  .lead { font-size: 15.5px; line-height: 1.6; }

  /* Buttons stack full-width. Scoped to .row so the drawer CTA and any
     inline link buttons keep their own sizing. */
  .row { gap: 10px; }
  .row > .btn { flex: 1 1 100%; }
  .btn { white-space: normal; }
  .btn--lg { min-height: 50px; }

  .grid { gap: 12px; }
  .grid--wide-gap { gap: 28px; }
  .row--between { gap: 18px; flex-direction: column; align-items: flex-start; }
  .row--between > .btn { width: 100%; }

  .card { padding: 20px; }
  .card--pad-lg, .card--pad-xl { padding: 22px; }

  /* Credential strip stacks into its four logical groups */
  .cred-strip {
    flex-direction: column;
    align-items: flex-start;
    gap: 7px;
    font-size: 13px;
  }
  .cred-strip > .cred-strip__sep { display: none; }

  .layer { padding: 18px; }
  .layer__title { font-size: 17px; }
  .layer__desc { font-size: 14px; }

  .scope__item { padding: 12px 14px; }
  .scope__item > span:last-child { font-size: 14.5px; }

  .naics__code { width: 56px; font-size: 13px; }
  .naics__name { font-size: 13.5px; line-height: 1.45; }
  .naics__row { padding: 12px 14px; gap: 10px; }

  .step { padding: 16px 18px; }

  /* Footer: compact lockup, links as a wrapped row, legal stacked */
  .site-footer__inner { gap: 22px; padding-block: 32px 20px; }
  .site-footer__inner img { display: none; }
  .site-footer .logo-compact { display: flex; margin-bottom: 14px; }
  .site-footer .logo-compact__fnd { color: #fff; font-size: 18px; }
  .site-footer .logo-compact__contracts { font-size: 8.5px; }
  .site-footer .logo-compact img { display: block; width: 32px; height: 32px; }
  .site-footer__blurb { font-size: 13.5px; max-width: none; }
  .site-footer__head { display: none; }
  .site-footer__links { flex-direction: row; flex-wrap: wrap; gap: 10px 22px; }
  .site-footer__links a { padding-block: 4px; }
  .site-footer__legal .container {
    flex-direction: column;
    gap: 5px;
    font-size: 11px;
    line-height: 1.5;
    padding-block: 14px;
  }
}

@media print {
  .site-header, .site-nav, .btn { display: none !important; }
  body { color: #000; background: #fff; }
}
