/* =========================================================================
   USPRO design system — modern federal/defense refresh.
   Navy + gold, serif display headings, generous rhythm, accessible contrast.
   Single stylesheet (no external fonts/CDN) for fast Core Web Vitals.
   ========================================================================= */

:root {
  /* Brand */
  --navy-950: #081525;
  --navy-900: #0a1a30;
  --navy-800: #12294a;
  --navy-700: #1b3a63;
  --navy-600: #274d7e;
  --gold-500: #c9a961;
  --gold-400: #d8bd82;
  --gold-600: #b0904c;

  /* Neutrals */
  --paper: #f7f6f3;
  --surface: #ffffff;
  --ink: #16202e;
  --ink-soft: #4a5568;
  --ink-faint: #6b7688;
  --border: #e2e4ea;
  --border-strong: #cfd3dc;
  --success: #1e6b3c;
  --success-bg: #eaf5ee;

  /* Type */
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Layout */
  --container: 1280px;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow-sm: 0 1px 2px rgba(8, 21, 37, 0.06), 0 2px 8px rgba(8, 21, 37, 0.05);
  --shadow-md: 0 6px 24px rgba(8, 21, 37, 0.10);
  --shadow-lg: 0 20px 60px rgba(8, 21, 37, 0.28);

  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { font-family: var(--serif); color: var(--navy-950); margin: 0 0 0.4em; line-height: 1.2; font-weight: 700; }
h1 { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1rem; }
a { color: var(--navy-700); text-decoration: none; }
a:hover { color: var(--gold-600); }
img { max-width: 100%; height: auto; }

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

.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--gold-500); color: var(--navy-950);
  padding: 10px 16px; z-index: 200; font-weight: 700; border-radius: 0 0 6px 0;
}
.skip-link:focus { left: 0; }

.eyebrow {
  text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.75rem; font-weight: 700;
  color: var(--gold-600); margin: 0 0 0.75rem;
}
.eyebrow-light { color: var(--gold-400); }

/* ---- Buttons ---------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--sans); font-weight: 700; font-size: 0.92rem; line-height: 1;
  padding: 12px 20px; border-radius: var(--radius-sm); border: 2px solid transparent;
  cursor: pointer; transition: all 0.15s ease; text-decoration: none; white-space: nowrap;
}
.btn-lg { padding: 15px 26px; font-size: 1rem; }
.btn-gold { background: var(--gold-500); color: var(--navy-950); border-color: var(--gold-500); }
.btn-gold:hover { background: var(--gold-400); border-color: var(--gold-400); color: var(--navy-950); }
.btn-outline { background: transparent; color: var(--navy-800); border-color: var(--border-strong); }
.btn-outline:hover { border-color: var(--navy-700); color: var(--navy-900); background: #fff; }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,0.5); }
.btn-outline-light:hover { border-color: var(--gold-400); color: var(--gold-400); }
.btn-ghost { background: transparent; color: #dbe3ef; border-color: transparent; padding: 12px 12px; }
.btn-ghost:hover { color: var(--gold-400); }
.btn:disabled { opacity: 0.5; cursor: default; }

/* ---- Header / nav ----------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--navy-950); border-bottom: 3px solid var(--gold-500);
  box-shadow: 0 2px 12px rgba(8,21,37,0.25);
}
.header-row { display: flex; align-items: center; gap: 20px; padding: 12px 24px; }
.brand { display: flex; align-items: center; gap: 11px; color: #fff; }
.brand:hover { color: #fff; }
.brand-logo { display: block; height: 34px; width: auto; }

.primary-nav { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.nav-list { display: flex; align-items: center; gap: 1px; list-style: none; margin: 0; padding: 0; }
.nav-item > a {
  display: flex; align-items: center; gap: 4px; white-space: nowrap; color: #dbe3ef; font-size: 0.86rem; font-weight: 500;
  padding: 9px 9px; border-radius: 6px; transition: color 0.15s, background 0.15s;
}
.nav-item > a:hover { color: #fff; background: rgba(255,255,255,0.06); }
.caret { width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid currentColor; opacity: 0.7; }

.has-sub { position: relative; }
.sub-menu {
  position: absolute; top: calc(100% + 2px); left: 0; min-width: 240px;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-md);
  list-style: none; margin: 0; padding: 8px; opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity 0.15s, transform 0.15s, visibility 0.15s; z-index: 120;
}
.has-sub:hover .sub-menu, .has-sub:focus-within .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.sub-menu a { display: block; padding: 9px 12px; border-radius: 6px; color: var(--ink); font-size: 0.88rem; }
.sub-menu a:hover { background: var(--paper); color: var(--navy-900); }

.nav-cta { display: flex; align-items: center; gap: 6px; }
.nav-cta .btn { padding: 9px 13px; font-size: 0.82rem; }
.nav-cta .btn-ghost { padding: 9px 6px; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; margin-left: auto; }
.nav-toggle span { width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: 0.2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---- Breadcrumbs ------------------------------------------------------ */
.breadcrumbs { background: var(--surface); border-bottom: 1px solid var(--border); font-size: 0.82rem; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 10px 0; color: var(--ink-faint); }
.breadcrumbs li:not(:last-child)::after { content: "/"; margin-left: 6px; color: var(--border-strong); }
.breadcrumbs a { color: var(--ink-soft); }
.breadcrumbs [aria-current] { color: var(--navy-800); font-weight: 600; }

/* ---- Hero ------------------------------------------------------------- */
.hero {
  position: relative; color: #fff; overflow: hidden;
  background:
    radial-gradient(1000px 500px at 85% -10%, rgba(201,169,97,0.18), transparent 60%),
    linear-gradient(155deg, var(--navy-950) 0%, var(--navy-800) 65%, var(--navy-700) 100%);
  padding: 72px 0 64px;
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.5; z-index: 1;
  background-image: linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 100% 44px;
}
.hero-video-bg {
  position: absolute; inset: 0; z-index: 0; overflow: hidden;
}
.hero-video-bg video {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
/* Video tint intentionally removed — the footage shows through cleanly.
   Legibility is preserved with per-element shadows instead of a full overlay. */
.hero-inner { position: relative; z-index: 2; max-width: 820px; }
.hero-logo { width: auto; }
.hero h1 { color: #fff; font-size: clamp(2.2rem, 4.6vw, 3.4rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }

/* Centered hero (home): large centered logo, trust line, headline, CTAs. */
.hero-inner--centered { max-width: 880px; margin: 0 auto; text-align: center; }
.hero-inner--centered .hero-logo {
  display: block; height: clamp(72px, 9vw, 120px); margin: 0 auto 22px;
  filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.5));
}
.hero-inner--centered .eyebrow-light { color: var(--gold-400); text-shadow: 0 1px 12px rgba(0, 0, 0, 0.6); }
.hero-inner--centered h1 { margin: 6px 0 12px; text-shadow: 0 2px 20px rgba(0, 0, 0, 0.6); }
.hero-lede {
  color: #e3e9f2; font-size: clamp(1.05rem, 1.7vw, 1.2rem); max-width: 680px; margin: 0 auto 28px;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.6);
}
.hero-inner--centered .hero-actions { justify-content: center; margin-bottom: 0; }

/* ---- Trust bar -------------------------------------------------------- */
.trust-bar { background: var(--navy-900); border-bottom: 1px solid var(--navy-700); }
.trust-bar-inner { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 40px; padding: 18px 24px; }
.trust-item { display: flex; align-items: center; gap: 10px; color: #cdd8e8; font-size: 0.85rem; }
.trust-badge {
  display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 26px; padding: 0 8px;
  background: rgba(201,169,97,0.15); color: var(--gold-400); border: 1px solid var(--gold-600);
  border-radius: 4px; font-weight: 800; font-size: 0.7rem; letter-spacing: 0.05em;
}

/* ---- Testimonials & reviews -------------------------------------------- */
.office-review-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.office-review-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); padding: 22px; text-align: center;
}
.office-review-card h3 { margin: 0 0 4px; color: var(--navy-900); }
.office-review-card p { margin: 0 0 14px; color: var(--ink-soft); font-size: 0.92rem; }
@media (max-width: 760px) {
  .office-review-grid { grid-template-columns: 1fr; }
}

.review-count-bubble {
  display: inline-flex; align-items: center; vertical-align: middle; margin-left: 4px;
  background: var(--navy-950); color: var(--gold-400); font-weight: 700; font-size: 0.78rem;
  padding: 3px 12px; border-radius: 999px; white-space: nowrap;
}

/* Office filter tabs — pill buttons above the review list. Reno is the
   default-active tab (js/app.js initReviewFilter sets .active on click and
   toggles [hidden] on .review-row, matched by data-office). */
.review-filter { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 0; }
.review-filter-btn {
  font: inherit; cursor: pointer; background: #fff; color: var(--ink-soft);
  border: 1px solid var(--border-strong); border-radius: 999px; padding: 8px 18px;
  font-weight: 700; font-size: 0.88rem; transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.review-filter-btn:hover { border-color: var(--navy-700); color: var(--navy-900); }
.review-filter-btn.active { background: var(--navy-950); border-color: var(--navy-950); color: #fff; }

/* Scrollable rectangle list of reviews — a fixed-height panel so a long
   review count doesn't push the rest of the page down; user scrolls inside. */
.review-scroll {
  margin-top: 20px; max-height: 620px; overflow-y: auto;
  border: 1px solid var(--border); border-radius: var(--radius); background: #fff;
}
.review-row { padding: 20px 24px; border-bottom: 1px solid var(--border); }
.review-row:last-child { border-bottom: none; }
.review-row .stars { display: inline-flex; gap: 2px; color: var(--gold-500); margin-bottom: 10px; }
.review-quote { margin: 0 0 10px; font-size: 0.98rem; line-height: 1.6; color: var(--ink); }
.review-meta { margin: 0; font-size: 0.85rem; color: var(--ink-faint); }
.review-meta .review-author { font-weight: 700; color: var(--navy-900); }
.reviews-cta { text-align: center; }
.reviews-cta .section-head { margin-left: auto; margin-right: auto; }
.reviews-btn-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* ---- Certifications & Affiliations section ---------------------------- */
.certs-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px; }
.certs-row--secondary { margin-top: 22px; }
.cert-card {
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  gap: 16px;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm);
}
.cert-card-logo { width: auto; object-fit: contain; }
.cert-card-label { font-weight: 600; line-height: 1.4; }

/* Top row (Women Owned, OSD, SDB, DBE, Military Friendly) — logos already
   sit on their own dark chip or are bold-color seals, so a plain white card
   reads fine; sized a touch larger. */
.cert-card--lg { flex: 0 1 240px; padding: 40px 26px; min-height: 210px; }
.cert-card--lg .cert-card-logo { max-height: 92px; }
.cert-card--lg .cert-card-label { font-size: 1rem; color: var(--ink-soft); }

/* Bottom row (WBENC, ASA) — light-ink marks on a transparent background
   need a dark card for contrast; gold label to match the treatment used in
   the Industries we staff section. */
.cert-card--sm { flex: 0 1 190px; padding: 26px 18px; min-height: 160px; }
.cert-card--sm .cert-card-logo { max-height: 60px; }
.cert-card--sm .cert-card-label { font-size: 0.85rem; }
.cert-card--dark {
  background: var(--navy-950); border-color: var(--navy-800);
}
.cert-card--dark .cert-card-label { color: var(--gold-400); }
.certs-section.section-alt .cert-card:not(.cert-card--dark) { background: #fff; }

/* ---- Partners marquee ------------------------------------------------- */
.partners { background: #fff; border-bottom: 1px solid var(--border); padding: 26px 0; }
.partners__viewport {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.partners__track {
  display: flex; align-items: center; gap: 110px; width: max-content;
  animation: partners-scroll 40s linear infinite;
}
.partners:hover .partners__track { animation-play-state: paused; }
.partners__track img {
  height: 60px; width: auto; object-fit: contain;
  opacity: 0.7; filter: grayscale(100%);
  transition: opacity 0.2s ease, filter 0.2s ease;
}
.partners__track img:hover { opacity: 1; filter: grayscale(0); }
@keyframes partners-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (max-width: 640px) {
  .partners__track { gap: 64px; }
  .partners__track img { height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  .partners__viewport { overflow-x: auto; }
  .partners__track { animation: none; }
}

/* ---- "Why USPRO" band (homepage, below the trust bar) ----------------- */
.why {
  padding: 80px 0; background: var(--paper);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.why-inner { display: grid; grid-template-columns: 1.35fr 1fr; gap: 60px; align-items: center; }
.why-title { font-size: clamp(1.75rem, 3vw, 2.5rem); line-height: 1.18; margin-bottom: 1rem; max-width: 580px; }
.why-lead { color: var(--ink-soft); font-size: 1.1rem; line-height: 1.65; max-width: 560px; margin-bottom: 2.25rem; }

.why-values { display: flex; flex-direction: column; gap: 20px; margin-bottom: 2.25rem; }
.why-value { display: flex; gap: 15px; align-items: flex-start; }
.why-value-mark {
  flex-shrink: 0; width: 28px; height: 28px; border-radius: 8px; margin-top: 2px;
  background: rgba(201, 169, 97, 0.16); display: flex; align-items: center; justify-content: center;
}
.why-value-mark::before { content: ""; width: 10px; height: 10px; background: var(--gold-600); transform: rotate(45deg); }
.why-value strong { display: block; color: var(--navy-900); font-size: 1.02rem; font-family: var(--serif); margin-bottom: 2px; }
.why-value span { color: var(--ink-soft); font-size: 0.95rem; line-height: 1.55; }

.why-stats {
  background: linear-gradient(160deg, var(--navy-950), var(--navy-800));
  color: #fff; border-radius: var(--radius); padding: 34px 34px 30px;
  border-top: 4px solid var(--gold-500); box-shadow: var(--shadow-md);
}
.why-stats-eyebrow {
  color: var(--gold-400); text-transform: uppercase; letter-spacing: 0.14em;
  font-size: 0.72rem; font-weight: 800; margin-bottom: 14px;
}
.why-stat { display: flex; align-items: baseline; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--navy-700); }
.why-stat:last-of-type { border-bottom: none; }
.why-stat strong { font-family: var(--serif); font-size: clamp(2.1rem, 3vw, 2.6rem); line-height: 1; color: var(--gold-400); min-width: 92px; }
.why-stat span { color: #cdd8e8; font-size: 0.98rem; font-weight: 600; }
.why-stats-foot { margin: 18px 0 0; color: #8fa3bf; font-size: 0.8rem; letter-spacing: 0.02em; }

@media (max-width: 860px) {
  .why { padding: 56px 0; }
  .why-inner { grid-template-columns: 1fr; gap: 40px; }
}

/* ---- Sections --------------------------------------------------------- */
.section { padding: 64px 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-navy { background: linear-gradient(160deg, var(--navy-950), var(--navy-800)); color: #dfe7f2; }
.section-navy h2, .section-navy h3 { color: #fff; }
.section-head { max-width: 760px; margin-bottom: 32px; }
.section-title { position: relative; }
.section-sub { color: var(--ink-soft); font-size: 1.02rem; margin-top: 0.25rem; }
.section-navy .section-sub, .on-navy-sub { color: #b8c6db; }
.section-cta { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; }

/* ---- Page header ------------------------------------------------------ */
.page-header {
  background: linear-gradient(160deg, var(--navy-950), var(--navy-800));
  color: #fff; padding: 56px 0 48px;
}
.page-header h1 { color: #fff; max-width: 900px; }
.page-header .lede { color: #d3ddec; font-size: clamp(1.05rem, 1.7vw, 1.25rem); max-width: 720px; margin: 0.75rem 0 0; }
.page-header-cta { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 12px; }

/* ---- Content split (main + aside) ------------------------------------- */
.content-split { padding: 56px 0; }
.content-split-inner { display: grid; grid-template-columns: minmax(0,1fr) 340px; gap: 48px; align-items: start; }
/* Used when the main column is just a short intro (industry pages, once Why
   It Matters/Roles moved out) — centers it beside Fast Facts instead of
   pinning to the top and trailing off into empty space below. */
.content-split-inner--center { align-items: center; }
.content-main > .intro { font-size: 1.14rem; color: var(--ink); }
.content-main .section-title { margin-top: 2rem; }
.content-main .section-title:first-child { margin-top: 0; }
.content-aside { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 20px; }

/* ---- Key takeaways ---------------------------------------------------- */
.key-takeaways { background: var(--navy-950); color: #e7edf6; border-radius: var(--radius); padding: 22px 24px; border-top: 4px solid var(--gold-500); }
.kt-heading { color: var(--gold-400); font-family: var(--sans); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 12px; }
.key-takeaways ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.key-takeaways li { position: relative; padding-left: 24px; font-size: 0.92rem; line-height: 1.5; }
.key-takeaways li::before { content: ""; position: absolute; left: 0; top: 7px; width: 10px; height: 10px; background: var(--gold-500); transform: rotate(45deg); }

/* Wide/centered variant — used below the main+aside row on location pages,
   where it spans the full container instead of sitting in the narrow
   sidebar, with its items laid out as a centered horizontal row. Declared
   after the base rules above so it wins the cascade at equal specificity. */
.key-takeaways--wide { margin-top: 40px; text-align: center; padding: 28px 32px; }
.key-takeaways--wide .kt-heading { text-align: center; }
.key-takeaways--wide ul { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 14px 40px; }
.key-takeaways--wide li { flex: 0 1 260px; text-align: left; }

/* Full-width sections stacked below the wide Key Takeaways (industry pages:
   Why It Matters, Roles We Staff) instead of being crammed into the main
   column next to the sidebar. */
.stacked-block { margin-top: 40px; max-width: 760px; }
.stacked-block--wide { max-width: none; }
.stacked-block .section-title { margin-top: 0; }

/* ---- Fast facts ------------------------------------------------------- */
.fast-facts { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 24px; box-shadow: var(--shadow-sm); }
.ff-heading { font-family: var(--sans); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink-faint); margin-bottom: 14px; }
.fast-facts dl { margin: 0; display: flex; flex-direction: column; }
.fast-facts dl > div { display: grid; grid-template-columns: 1fr; gap: 2px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.fast-facts dl > div:last-child { border-bottom: none; padding-bottom: 0; }
.fast-facts dt { font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-faint); font-weight: 700; }
.fast-facts dd { margin: 0; font-size: 0.95rem; color: var(--ink); font-weight: 500; }

/* ---- Lists ------------------------------------------------------------ */
.roles-list { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px,1fr)); gap: 10px; }
.roles-list li { background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--gold-500); border-radius: var(--radius-sm); padding: 12px 14px; font-size: 0.92rem; }
.check-list { list-style: none; margin: 0 0 1rem; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.check-list li { position: relative; padding-left: 30px; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--success-bg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%231e6b3c'%3E%3Cpath d='M6.5 11.5L3 8l1-1 2.5 2.5L12 4l1 1z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center;
}
.check-list.light li { color: #dfe7f2; }
.check-list.light li::before { background: rgba(201,169,97,0.2); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23d8bd82'%3E%3Cpath d='M6.5 11.5L3 8l1-1 2.5 2.5L12 4l1 1z'/%3E%3C/svg%3E"); }

/* ---- Cards ------------------------------------------------------------ */
/* Flexbox (not grid) so a partial last row — e.g. 5 cards in a 3-up grid —
   centers instead of left-aligning with empty space on the right. Cards grow
   to fill each row up to max-width, so full rows still look grid-like, and
   flex-wrap keeps the same responsive column collapse the old auto-fill grid
   had. max-width values approximate the prior column widths at the
   container's 1160px max-width so nothing changes when a row is full. */
.card-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; }
.card-grid.cols-2 > .card { flex: 1 1 300px; max-width: 570px; }
.card-grid.cols-3 > .card { flex: 1 1 280px; max-width: 373px; }
.card-grid.cols-4 > .card { flex: 1 1 220px; max-width: 275px; }
.card {
  display: flex; flex-direction: column; gap: 8px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
  color: var(--ink);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--border-strong); color: var(--ink); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.card-icon { display: inline-flex; flex-shrink: 0; color: var(--navy-700); line-height: 1; }
.card-icon svg { width: 30px; height: 30px; }
.card h3 { margin: 0; color: var(--navy-900); }
.card p { color: var(--ink-soft); font-size: 0.92rem; margin: 0; flex: 1; }
.card-link { color: var(--navy-700); font-weight: 700; font-size: 0.85rem; margin-top: 4px; }
.card:hover .card-link { color: var(--gold-600); }

/* ---- Industries showcase (homepage) ------------------------------------
   Heavier, more deliberate treatment than the generic card grid — a navy
   icon badge instead of a floating glyph, a gold top rule, and firmer
   elevation on hover — so the section reads as a capability roster for a
   defense/gov-contractor audience rather than a generic marketing grid.
   Section itself uses the existing .section-navy treatment (same as the
   "Featured open positions" band) for a consistent dark/light rhythm. */
.industry-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 8px;
}
.industry-tile {
  display: flex; flex-direction: column; gap: 10px; text-align: left; color: var(--ink);
  background: var(--surface); border-radius: var(--radius); padding: 26px 22px 22px;
  border-top: 3px solid var(--gold-500);
  box-shadow: var(--shadow-md);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.industry-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); color: var(--ink); }
.industry-tile-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 10px;
  background: var(--navy-950); color: var(--gold-400);
}
.industry-tile-icon svg { width: 26px; height: 26px; }
.industry-tile h3 { margin: 4px 0 0; font-size: 1.08rem; color: var(--navy-900); }
.industry-tile p { margin: 0; color: var(--ink-soft); font-size: 0.88rem; line-height: 1.5; flex: 1; }
.industry-tile-link { color: var(--navy-700); font-weight: 700; font-size: 0.84rem; }
.industry-tile:hover .industry-tile-link { color: var(--gold-600); }
@media (max-width: 900px) {
  .industry-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .industry-grid { grid-template-columns: 1fr; }
}

/* ---- FAQ -------------------------------------------------------------- */
.faq { padding: 56px 0; }
.faq .container { max-width: 860px; }
/* Homepage FAQ only (id="home-faq") — center the heading; the accordion
   list itself stays left-aligned since centered paragraph text is harder
   to read. */
#home-faq .section-title { text-align: center; }
.faq-list { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
.faq-group + .faq-group { margin-top: 36px; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.faq-item[open] { border-color: var(--border-strong); box-shadow: var(--shadow-sm); }
.faq-item__q {
  cursor: pointer; padding: 18px 22px; font-weight: 700; font-family: var(--serif); font-size: 1.05rem; color: var(--navy-900);
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-item__q::-webkit-details-marker { display: none; }
.faq-item__q::after { content: "+"; font-family: var(--sans); font-size: 1.5rem; color: var(--gold-600); font-weight: 400; transition: transform 0.2s; }
.faq-item[open] .faq-item__q::after { transform: rotate(45deg); }
.faq-item__answer { padding: 0 22px 20px; color: var(--ink-soft); }
.faq-item__answer p { margin: 0; }

/* ---- CTA band --------------------------------------------------------- */
.cta-band { background: linear-gradient(120deg, var(--navy-900), var(--navy-700)); color: #fff; }
.cta-band-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 44px 24px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin: 0; }
.cta-band p { color: #cdd8e8; margin: 6px 0 0; }
.cta-band-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---- Clients row ------------------------------------------------------ */
.client-row { display: flex; flex-wrap: wrap; gap: 14px 30px; align-items: center; }
.client-name { font-family: var(--serif); font-size: 1.3rem; color: var(--ink-faint); font-weight: 700; letter-spacing: 0.01em; }

/* ---- Jobs ------------------------------------------------------------- */
.jobs-search { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.jobs-search input { flex: 1 1 220px; padding: 12px 14px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); font-size: 0.95rem; font-family: var(--sans); }
.jobs-meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.results-meta { color: var(--ink-soft); font-size: 0.9rem; font-weight: 600; }
.bh-status { display: inline-flex; align-items: center; gap: 7px; font-size: 0.78rem; color: var(--ink-faint); border: 1px solid var(--border); padding: 5px 11px; border-radius: 999px; background: #fff; }
.bh-status .dot { width: 8px; height: 8px; border-radius: 50%; background: #9aa5b1; }
.bh-status.connected .dot { background: #3ecf7a; box-shadow: 0 0 0 3px rgba(62,207,122,0.18); }
.bh-status.error .dot { background: #e05555; }
.section-navy .bh-status { background: rgba(255,255,255,0.06); border-color: var(--navy-600); color: #b8c6db; }

.jobs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px,1fr)); gap: 18px; }
.job-card {
  background: var(--surface); border: 1px solid var(--border); border-top: 3px solid var(--navy-700);
  border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 8px; box-shadow: var(--shadow-sm);
  transition: transform 0.15s, box-shadow 0.15s;
}
.job-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.job-card h3 { margin: 0; font-size: 1.1rem; }
.job-card h3 a { color: var(--navy-900); }
.job-card h3 a:hover { color: var(--gold-600); }
.job-card .client { color: var(--navy-700); font-weight: 600; font-size: 0.88rem; }
.job-card .meta { color: var(--ink-faint); font-size: 0.83rem; display: flex; flex-wrap: wrap; gap: 8px 14px; }
.job-card .meta span { display: inline-flex; align-items: center; }
.job-card .meta .tag { background: var(--paper); border: 1px solid var(--border); border-radius: 4px; padding: 2px 8px; font-weight: 600; color: var(--ink-soft); }
.job-card .job-cta { margin-top: auto; padding-top: 6px; }
.section-navy .job-card { background: #fff; }
.loading, .empty-state { color: var(--ink-soft); padding: 24px 0; }
.section-navy .loading { color: #b8c6db; }
.error-state { color: #b3352f; padding: 16px 0; }

.pagination { display: flex; justify-content: center; gap: 8px; margin: 32px 0 4px; flex-wrap: wrap; }
.pagination button { border: 1px solid var(--border-strong); background: #fff; padding: 8px 13px; border-radius: var(--radius-sm); cursor: pointer; font-size: 0.85rem; font-weight: 600; }
.pagination button.active { background: var(--navy-900); color: #fff; border-color: var(--navy-900); }
.pagination button:disabled { opacity: 0.4; cursor: default; }

/* ---- Job detail (server-rendered page) -------------------------------- */
.job-detail { padding: 48px 0; }
.job-detail .container { max-width: 820px; }
.job-detail-header { border-bottom: 1px solid var(--border); padding-bottom: 20px; margin-bottom: 24px; }
.job-detail-meta { color: var(--ink-soft); font-size: 0.95rem; display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 8px; }
.job-detail-desc { font-size: 1rem; color: var(--ink); line-height: 1.7; }
.job-detail-desc :is(p, li) { margin: 0 0 10px; }
.job-detail-desc h1, .job-detail-desc h2, .job-detail-desc h3 { font-size: 1.15rem; margin: 1.2rem 0 0.5rem; }

/* ---- Apply / resume widget ------------------------------------------- */
.apply-section, .resume-widget { border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; background: var(--surface); box-shadow: var(--shadow-sm); margin-top: 24px; }
.file-drop { border: 2px dashed var(--border-strong); border-radius: var(--radius); padding: 24px; text-align: center; color: var(--ink-soft); font-size: 0.92rem; transition: border-color 0.15s, background 0.15s; }
.file-drop.dragover { border-color: var(--gold-500); background: #fffdf6; }
.file-drop input { margin-top: 12px; }
.parse-badge { display: inline-block; font-size: 0.7rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; padding: 4px 9px; border-radius: 999px; margin-bottom: 14px; }
.parse-badge.ai { background: var(--success-bg); color: var(--success); }
.parse-badge.local-fallback { background: #fdf2d8; color: #8a6414; }
.parsed-form label { display: block; font-size: 0.8rem; font-weight: 600; color: var(--ink-soft); margin: 12px 0 4px; }
.parsed-form input, .lead-form input, .lead-form textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); font-size: 0.94rem; font-family: var(--sans); }
.skills-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.skills-chips span { background: var(--navy-900); color: #fff; font-size: 0.74rem; padding: 4px 10px; border-radius: 999px; }
.success-box { background: var(--success-bg); border: 1px solid #bfe2c9; border-radius: var(--radius); padding: 20px; }
.success-box h3 { color: var(--success); margin-bottom: 6px; }
.payload-preview { background: var(--navy-950); color: #d7e2f0; font-family: Menlo, Consolas, monospace; font-size: 0.76rem; padding: 14px; border-radius: var(--radius-sm); overflow-x: auto; margin-top: 12px; white-space: pre; }
.sim-note { font-size: 0.78rem; color: var(--ink-faint); margin-top: 10px; }

/* ---- Forms ------------------------------------------------------------ */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-row-3 { grid-template-columns: 2fr 1fr 1fr; }
.lead-form label { display: block; font-size: 0.82rem; font-weight: 600; color: var(--ink-soft); margin-bottom: 12px; }
.lead-form input, .lead-form textarea, .lead-form select { margin-top: 4px; }
.lead-form select { width: 100%; padding: 10px 12px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); font-size: 0.94rem; font-family: var(--sans); background: var(--surface); color: var(--ink); }
.lead-form textarea { resize: vertical; }
@media (max-width: 620px) { .form-row, .form-row-3 { grid-template-columns: 1fr; } }

/* ---- Apply page ------------------------------------------------------- */
.apply-cta { text-align: center; }
.apply-cta .btn { margin-top: 6px; }
.apply-container { max-width: 720px; }
.apply-job { font-size: 1rem; color: var(--ink-soft); margin-bottom: 20px; }
.apply-form { border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; background: var(--surface); box-shadow: var(--shadow-sm); }
.apply-resume { border-top: 1px solid var(--border); margin-top: 20px; padding-top: 20px; }
.apply-resume .optional { font-weight: 400; color: var(--ink-faint); text-transform: none; }
.apply-resume input[type=file] { display: block; margin-top: 8px; font-size: 0.9rem; }
.apply-resume-hint { font-size: 0.8rem; color: var(--ink-faint); margin-top: 8px; }
.apply-resume-status { font-size: 0.82rem; margin-top: 8px; min-height: 1.2em; }
.apply-resume-status.ok { color: var(--success); }
.apply-resume-status.err { color: var(--ink-faint); }
.apply-form .btn { margin-top: 22px; }
.lead-form .btn { margin-top: 6px; }
.form-status { font-size: 0.88rem; margin-top: 10px; }
.form-status.ok { color: var(--success); }
.form-status.err { color: #b3352f; }
/* Honeypot spam-guard: off-screen (not display:none, which some bots skip
   when filling forms), never seen or reachable by real keyboard/AT users. */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---- Refer a Friend form --------------------------------------------- */
.refer-form { max-width: 640px; margin-top: 16px; }
.refer-form label { display: block; font-size: 0.82rem; font-weight: 600; color: var(--ink-soft); margin-bottom: 12px; }
.refer-form input, .refer-form textarea { width: 100%; margin-top: 4px; padding: 10px 12px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); font-size: 0.94rem; font-family: var(--sans); }
.refer-form textarea { resize: vertical; }
.refer-form input[type=file] { padding: 8px 0; border: none; font-size: 0.9rem; }
.refer-fieldset { border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px 6px; margin: 0 0 18px; }
.refer-fieldset legend { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--navy-700); padding: 0 8px; }
.refer-form .btn { margin-top: 4px; }

/* ---- Contact ---------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: minmax(0,1.5fr) 320px; gap: 40px; align-items: start; }
.contact-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); margin-bottom: 24px; }
.contact-info { background: var(--navy-950); color: #dfe7f2; border-radius: var(--radius); padding: 26px; position: sticky; top: 100px; }
.contact-info h2 { color: #fff; }
.contact-dl > div { padding: 12px 0; border-bottom: 1px solid var(--navy-700); }
.contact-dl dt { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--gold-400); font-weight: 700; margin-bottom: 3px; }
.contact-dl dd { margin: 0; color: #dfe7f2; }
.contact-dl a { color: #fff; }
.contact-locations { display: flex; gap: 14px; margin-top: 16px; flex-wrap: wrap; }
.contact-locations a { color: var(--gold-400); font-size: 0.85rem; font-weight: 600; }

/* ---- Federal capabilities --------------------------------------------- */
.on-navy { color: #fff; }
.cap-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); gap: 28px; margin-top: 24px; }
.cap-col h3 { color: var(--gold-400); font-family: var(--sans); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.1em; }
.cap-facts { margin: 0; }
.cap-facts > div { padding: 8px 0; border-bottom: 1px solid var(--navy-700); }
.cap-facts dt { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: #9db1cc; }
.cap-facts dd { margin: 0; color: #fff; font-size: 0.92rem; }
.cap-download { margin-top: 30px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.cap-note { font-size: 0.8rem; color: #9db1cc; }
.fed-section { margin-top: 2rem; }
.fed-section:first-child { margin-top: 0; }

/* ---- Leadership ------------------------------------------------------- */
.leader-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px,1fr)); gap: 24px; }
.leader-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); text-align: center; }
.leader-photo { width: 96px; height: 96px; border-radius: 50%; margin: 0 auto 16px; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.leader-photo--placeholder { background: linear-gradient(150deg, var(--navy-800), var(--navy-600)); color: var(--gold-400); font-family: var(--serif); font-size: 1.9rem; font-weight: 700; }
.leader-card h2 { font-size: 1.2rem; margin: 0; }
.leader-title { color: var(--gold-600); font-weight: 700; font-size: 0.88rem; margin: 2px 0 12px; }
.leader-bio { color: var(--ink-soft); font-size: 0.92rem; }
.notice { background: #fff8e6; border: 1px solid #f0dca6; border-radius: var(--radius); padding: 16px 20px; color: #6b5410; font-size: 0.92rem; margin-bottom: 28px; }

/* About-page leadership teaser — compact avatar row + CTA (no placeholder
   bios), so the section reads as an intentional team preview instead of an
   empty band. */
.leadership-teaser-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 28px; }
.leadership-teaser-head .section-head { margin-bottom: 0; }
.leader-chip-row { display: flex; flex-wrap: wrap; gap: 16px; }
.leader-chip {
  flex: 1 1 200px; display: flex; align-items: center; gap: 14px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px 18px; box-shadow: var(--shadow-sm); color: var(--ink);
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}
.leader-chip:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--border-strong); color: var(--ink); }
.leader-chip-avatar {
  flex-shrink: 0; width: 52px; height: 52px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(150deg, var(--navy-800), var(--navy-600));
  color: var(--gold-400); font-family: var(--serif); font-weight: 700; font-size: 1.1rem;
}
.leader-chip-role { font-weight: 700; color: var(--navy-900); font-size: 0.95rem; }

/* ---- Article + TL;DR + glossary --------------------------------------- */
.article-layout .container, .article-layout { max-width: 780px; }
.article-body { max-width: 780px; margin: 0 auto; }
.article-meta { color: var(--ink-faint); font-size: 0.85rem; margin-bottom: 20px; }
.article-body .section-title { margin-top: 2rem; font-size: 1.4rem; }
.tldr { background: var(--navy-950); color: #e7edf6; border-radius: var(--radius); padding: 22px 24px; border-left: 4px solid var(--gold-500); margin-bottom: 28px; }
.tldr-label { display: inline-block; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.12em; color: var(--gold-400); text-transform: uppercase; margin-bottom: 8px; }
.tldr p { margin: 0; font-size: 1.02rem; }
.glossary { margin: 0; display: grid; gap: 16px; }
.glossary-item { background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--gold-500); border-radius: var(--radius-sm); padding: 16px 20px; }
.glossary-item dt { font-family: var(--serif); font-size: 1.1rem; font-weight: 700; color: var(--navy-900); margin-bottom: 4px; }
.glossary-item dd { margin: 0; color: var(--ink-soft); }

.ncr { max-width: 760px; }

/* ---- Footer ----------------------------------------------------------- */
.site-footer { background: var(--navy-950); color: #aebfd6; padding: 56px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1.4fr; gap: 32px; }
.footer-brand .brand-logo { height: 38px; }
.footer-tagline { font-size: 0.86rem; color: #91a3bd; margin: 14px 0 16px; max-width: 320px; }
.footer-certs { display: flex; flex-wrap: wrap; gap: 8px; }
.cert-chip { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.04em; color: var(--gold-400); border: 1px solid var(--navy-600); border-radius: 4px; padding: 4px 8px; }
.footer-heading { font-family: var(--sans); font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.1em; color: #7f93b0; margin-bottom: 14px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.footer-col a { color: #c3d0e4; font-size: 0.88rem; }
.footer-col a:hover { color: var(--gold-400); }
.footer-contact p { font-size: 0.86rem; line-height: 1.6; margin: 0 0 10px; }
.footer-contact a { color: #c3d0e4; }
.footer-social { display: flex; gap: 14px; margin-top: 6px; }
.footer-social a { color: var(--gold-400); font-size: 0.85rem; font-weight: 600; }
.footer-bottom { border-top: 1px solid var(--navy-800); margin-top: 40px; padding-top: 20px; }
.footer-bottom p { font-size: 0.78rem; color: #7f93b0; margin: 0 0 6px; }
.footer-legal { color: #6b7f9c; }

/* ---- Chat widget (bottom-right, high z-index) ------------------------- */
.chat-widget { position: fixed; right: 24px; bottom: 24px; z-index: 1000; }
.chat-fab {
  width: 60px; height: 60px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--gold-500); color: var(--navy-950);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(8,21,37,0.35); transition: transform 0.15s, background 0.15s;
}
.chat-fab:hover { background: var(--gold-400); transform: translateY(-2px); }
.chat-fab-close { display: none; }
.chat-widget.open .chat-fab { background: var(--navy-900); color: #fff; }
.chat-widget.open .chat-fab-icon { display: none; }
.chat-widget.open .chat-fab-close { display: block; }

.chat-panel {
  position: absolute; right: 0; bottom: 74px; width: min(380px, calc(100vw - 32px));
  height: min(560px, calc(100vh - 120px)); background: var(--surface);
  border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column; overflow: hidden;
  animation: chat-in 0.18s ease;
}
/* The `hidden` attribute must win over the display:flex above (author rules
   otherwise defeat the UA `[hidden]{display:none}`), so the panel stays closed
   until the user clicks the chat button. */
.chat-panel[hidden] { display: none; }
@keyframes chat-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.chat-header {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 16px; background: linear-gradient(120deg, var(--navy-950), var(--navy-800)); color: #fff;
}
.chat-header-title { display: flex; align-items: center; gap: 10px; }
.chat-header-title strong { display: block; font-family: var(--serif); font-size: 1rem; }
.chat-header-title small { color: #9db1cc; font-size: 0.74rem; }
.chat-status-dot { width: 9px; height: 9px; border-radius: 50%; background: #3ecf7a; box-shadow: 0 0 0 3px rgba(62,207,122,0.2); flex-shrink: 0; }
.chat-close { background: none; border: none; color: #cdd8e8; font-size: 1.6rem; line-height: 1; cursor: pointer; padding: 0 4px; }
.chat-close:hover { color: #fff; }

.chat-log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; background: var(--paper); }
.chat-msg { display: flex; }
.chat-msg--user { justify-content: flex-end; }
.chat-bubble {
  max-width: 84%; padding: 10px 14px; border-radius: 14px; font-size: 0.92rem; line-height: 1.5;
  box-shadow: var(--shadow-sm); word-wrap: break-word;
}
.chat-msg--assistant .chat-bubble { background: #fff; border: 1px solid var(--border); border-bottom-left-radius: 4px; color: var(--ink); }
.chat-msg--user .chat-bubble { background: var(--navy-900); color: #fff; border-bottom-right-radius: 4px; }
.chat-bubble a { color: var(--gold-600); font-weight: 600; text-decoration: underline; }
.chat-msg--user .chat-bubble a { color: var(--gold-400); }
.chat-bubble p { margin: 0 0 8px; }
.chat-bubble p:last-child { margin-bottom: 0; }
.chat-bubble strong { font-weight: 700; }
.chat-bubble ul, .chat-bubble ol { margin: 6px 0; padding-left: 20px; }
.chat-bubble li { margin: 3px 0; }
.chat-bubble li:last-child { margin-bottom: 0; }

.chat-typing { display: flex; gap: 4px; align-items: center; }
.chat-typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-faint); animation: chat-blink 1.2s infinite both; }
.chat-typing span:nth-child(2) { animation-delay: 0.2s; }
.chat-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes chat-blink { 0%, 80%, 100% { opacity: 0.3; } 40% { opacity: 1; } }

.chat-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--border); background: #fff; }
.chat-form input { flex: 1; padding: 11px 14px; border: 1px solid var(--border-strong); border-radius: 999px; font-size: 0.92rem; font-family: var(--sans); }
.chat-form input:focus { outline: none; border-color: var(--gold-500); }
.chat-send { flex-shrink: 0; width: 42px; height: 42px; border-radius: 50%; border: none; background: var(--gold-500); color: var(--navy-950); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.chat-send:hover { background: var(--gold-400); }
.chat-disclaimer { margin: 0; padding: 0 14px 12px; background: #fff; font-size: 0.68rem; color: var(--ink-faint); text-align: center; }

@media (max-width: 560px) {
  .chat-widget { right: 16px; bottom: 16px; }
  .chat-panel { bottom: 70px; height: min(70vh, 520px); }
}
@media (prefers-reduced-motion: reduce) {
  .chat-panel { animation: none; }
}

/* ---- Responsive ------------------------------------------------------- */
@media (max-width: 980px) {
  .content-split-inner { grid-template-columns: 1fr; }
  .content-aside { position: static; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-info { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1080px) {
  .nav-toggle { display: flex; }
  .primary-nav {
    position: fixed; inset: 0 0 0 auto; width: min(360px, 84vw); background: var(--navy-950);
    flex-direction: column; align-items: stretch; gap: 0; padding: 80px 20px 24px; margin: 0;
    transform: translateX(100%); transition: transform 0.25s ease; overflow-y: auto; z-index: 90;
    box-shadow: var(--shadow-lg);
  }
  .primary-nav.open { transform: translateX(0); }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; width: 100%; }
  .nav-item { border-bottom: 1px solid var(--navy-800); }
  .nav-item > a { padding: 14px 6px; font-size: 1rem; }
  .sub-menu {
    position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; background: transparent;
    border: none; padding: 0 0 8px 12px; display: none;
  }
  .has-sub.expanded .sub-menu { display: block; }
  .sub-menu a { color: #9db1cc; }
  .nav-cta { margin-top: 18px; flex-direction: column; align-items: stretch; }
  .nav-cta .btn { width: 100%; }
  .caret { margin-left: auto; }
}

@media (max-width: 560px) {
  .section { padding: 44px 0; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-band-inner { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
  .hero-video-bg video { display: none; }
}
