/* ============================================================
   Helidge — shared site styles (self-contained, cPanel deployable)
   Source of truth: /brand/design-system/tokens.css
   Per-site accent set via --site-accent in the page <head>.
   ============================================================ */

:root {
  --helidge-navy:     #1B1E2B;
  --helidge-teal:      #1D9E75;
  --helidge-teal-dk:   #0F6E56;
  --helidge-light:     #E8ECF2;
  --helidge-muted:     #8A96A6;
  --helidge-muted-dk:  #556070;

  --helidge-hero-bg:   #161A27;
  --helidge-darker-bg: #151720;
  --helidge-deep-bg:   #0F1119;

  --systems-color:  #1D9E75;
  --research-color: #378ADD;
  --regional-color: #BA7517;

  --surface:        #F5F3EE;
  --surface-line:   rgba(27, 30, 43, 0.10);
  --ink:            #1B1E2B;
  --ink-muted:      #5C6270;

  --font-brand: 'Barlow', 'Arial', 'Helvetica Neue', sans-serif;
  --font-mono:  ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* Overridden per-site in the page <head>. Defaults to teal. */
  --site-accent:    var(--helidge-teal);
  --site-accent-dk: var(--helidge-teal-dk);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body {
  font-family: var(--font-brand);
  color: var(--ink);
  background: #FFFFFF;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

a { color: inherit; }
img, svg { display: block; max-width: 100%; }

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---------- Flange motif (brand mark) ---------- */
.flange {
  --ring: var(--helidge-navy);
  --dot: var(--site-accent);
}
.flange circle.ring { fill: none; stroke: var(--ring); }
.flange circle.dot  { fill: var(--dot); }
.flange.on-dark { --ring: var(--helidge-light); }

/* ---------- Nav ---------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--surface-line);
}
.site-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brandmark {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
}
.wordmark {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.3px;
  color: var(--helidge-navy);
  white-space: nowrap;
}
.wordmark-sub {
  font-weight: 500;
  font-size: 0.62rem;
  letter-spacing: 3.5px;
  color: var(--site-accent);
  text-transform: uppercase;
  margin-left: 0.45em;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
}
.nav-links a {
  font-size: 0.85rem;
  color: var(--ink-muted);
  text-decoration: none;
  transition: color 0.15s ease;
}
.nav-links a:hover, .nav-links a:focus-visible { color: var(--ink); }
.nav-toggle { display: none; }

@media (max-width: 760px) {
  .nav-links { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  background: var(--helidge-hero-bg);
  color: var(--helidge-light);
  padding: 5rem 0 4.5rem;
}
.hero .eyebrow {
  font-size: 0.78rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--site-accent);
  margin-bottom: 1.1rem;
}
.hero h1 {
  font-weight: 700;
  font-size: clamp(2.1rem, 4.4vw, 3.4rem);
  letter-spacing: -0.5px;
  max-width: 17ch;
  margin-bottom: 1.25rem;
}
.hero p.lede {
  color: var(--helidge-muted);
  font-size: 1.05rem;
  line-height: 1.65;
  max-width: 52ch;
  margin-bottom: 2.25rem;
}
.cta-row { display: flex; gap: 0.9rem; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  font-size: 0.88rem;
  font-weight: 500;
  padding: 0.75rem 1.4rem;
  border-radius: 7px;
  text-decoration: none;
  transition: opacity 0.15s ease, background 0.15s ease;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-fill {
  background: var(--site-accent);
  color: var(--helidge-navy);
}
.btn-fill:hover, .btn-fill:focus-visible { opacity: 0.88; }
.btn-ghost {
  border-color: rgba(255,255,255,0.28);
  color: var(--helidge-light);
}
.btn-ghost:hover, .btn-ghost:focus-visible { border-color: rgba(255,255,255,0.55); }

/* ---------- Trust strip ---------- */
.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--surface-line);
}
.trust-item {
  padding: 1.1rem 1rem;
  border-right: 1px solid var(--surface-line);
  text-align: center;
}
.trust-item:last-child { border-right: none; }
.trust-val {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
}
.trust-lbl {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.4px;
  color: var(--ink-muted);
  margin-top: 0.2rem;
}
@media (max-width: 700px) {
  .trust-strip { grid-template-columns: repeat(2, 1fr); }
  .trust-item:nth-child(2) { border-right: none; }
}

/* ---------- Section scaffolding ---------- */
.section { padding: 4.5rem 0; }
.section-light { background: #FFFFFF; }
.section-surface { background: var(--surface); }
.section-dark { background: var(--helidge-hero-bg); color: var(--helidge-light); }
.section-title {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.3px;
  margin-bottom: 0.5rem;
}
.section-sub {
  color: var(--ink-muted);
  font-size: 0.95rem;
  max-width: 56ch;
  margin-bottom: 2.5rem;
}
.section-dark .section-sub { color: var(--helidge-muted); }

/* ---------- Cards: two-up (hermeticity, program tracks) ---------- */
.card-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
@media (max-width: 700px) { .card-grid-2 { grid-template-columns: 1fr; } }

.boundary-card {
  background: #FFFFFF;
  border-left: 3px solid var(--card-accent, var(--site-accent));
  border-radius: 0 10px 10px 0;
  padding: 1.75rem 1.75rem 1.6rem;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.boundary-card h3 {
  font-size: 1.02rem;
  font-weight: 700;
  margin-bottom: 0.85rem;
  color: var(--ink);
}
.boundary-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.boundary-card li {
  font-size: 0.88rem;
  color: var(--ink-muted);
  padding-left: 1.1rem;
  position: relative;
}
.boundary-card li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--card-accent, var(--site-accent));
}

/* ---------- Sub-brand / partnership portal cards ---------- */
.card-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
@media (max-width: 820px) { .card-grid-3 { grid-template-columns: 1fr; } }

.portal-card {
  background: #FFFFFF;
  border: 1px solid var(--surface-line);
  border-radius: 12px;
  padding: 1.75rem;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.portal-card:hover, .portal-card:focus-visible {
  border-color: var(--portal-accent, var(--site-accent));
  transform: translateY(-2px);
}
.portal-card .portal-name {
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink);
}
.portal-card .portal-domain {
  font-size: 0.78rem;
  color: var(--portal-accent, var(--site-accent));
  font-family: var(--font-mono);
}
.portal-card .portal-desc {
  font-size: 0.85rem;
  color: var(--ink-muted);
  margin-top: 0.2rem;
  flex: 1;
}
.portal-card .portal-arrow {
  font-size: 0.85rem;
  color: var(--portal-accent, var(--site-accent));
  margin-top: 0.5rem;
}
.portal-card.is-reserve {
  opacity: 0.7;
}
.portal-card .reserve-badge {
  display: inline-block;
  font-size: 0.66rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--regional-color);
  border: 1px solid var(--regional-color);
  border-radius: 999px;
  padding: 0.15rem 0.55rem;
  margin-top: 0.4rem;
  width: fit-content;
}

/* ---------- Origin / pull quote ---------- */
.origin-quote {
  border-left: 3px solid var(--site-accent);
  padding-left: 1.5rem;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--helidge-light);
  max-width: 56ch;
  font-style: italic;
}

/* ---------- Team / role grid ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
  text-align: center;
}
@media (max-width: 820px) { .team-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 540px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }

.role-card { display: flex; flex-direction: column; align-items: center; gap: 0.65rem; }
.role-mark {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--site-accent) 14%, white);
  display: flex;
  align-items: center;
  justify-content: center;
}
.role-mark svg { width: 36px; height: 36px; }
.role-label { font-size: 0.82rem; color: var(--ink); font-weight: 500; }

/* ---------- Credential cards (helidgesystems.com) ---------- */
.credential-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}
@media (max-width: 700px) { .credential-grid { grid-template-columns: 1fr; } }
.credential-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: #FFFFFF;
  border: 1px solid var(--surface-line);
  border-radius: 10px;
  padding: 1.25rem 1.4rem;
}
.credential-card .role-mark { width: 44px; height: 44px; flex: none; }
.credential-card .role-mark svg { width: 28px; height: 28px; }
.credential-card .credential-title { font-weight: 700; font-size: 0.92rem; }
.credential-card .credential-sub { font-size: 0.82rem; color: var(--ink-muted); margin-top: 0.15rem; }

/* ---------- Spec list (helidgesystems.com capabilities) ---------- */
.spec-list {
  background: var(--surface);
  border: 1px solid var(--surface-line);
  border-radius: 10px;
  padding: 1.5rem 1.75rem;
  font-family: var(--font-mono);
  font-size: 0.84rem;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.spec-list span.dash { color: var(--site-accent); margin-right: 0.5em; }

/* ---------- Cert cards ---------- */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
@media (max-width: 820px) { .cert-grid { grid-template-columns: 1fr; } }
.cert-card {
  background: #FFFFFF;
  border: 1px solid var(--surface-line);
  border-radius: 10px;
  padding: 1.5rem;
  text-align: center;
}
.cert-card h3 { font-size: 0.95rem; font-weight: 700; margin-bottom: 0.5rem; }
.cert-card p { font-size: 0.82rem; color: var(--ink-muted); line-height: 1.5; }

/* ---------- SAM.gov data block ---------- */
.data-block {
  background: var(--surface);
  border: 1px solid var(--surface-line);
  border-radius: 10px;
  padding: 1.5rem 1.75rem;
}
.data-block dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.4rem 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.84rem;
}
.data-block dt { color: var(--ink-muted); }
.data-block dd { color: var(--ink); }
.data-block .data-link {
  display: inline-block;
  margin-top: 0.9rem;
  font-size: 0.82rem;
  color: var(--site-accent);
  text-decoration: none;
}

/* ---------- RFQ form ---------- */
.rfq-form { display: flex; flex-direction: column; gap: 1rem; max-width: 720px; }
.rfq-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 600px) { .rfq-row { grid-template-columns: 1fr; } }
.field label {
  display: block;
  font-size: 0.78rem;
  color: var(--ink-muted);
  margin-bottom: 0.35rem;
}
.field input, .field textarea {
  width: 100%;
  font-family: var(--font-brand);
  font-size: 0.9rem;
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--surface-line);
  border-radius: 7px;
  background: #FFFFFF;
  color: var(--ink);
}
.field input:focus, .field textarea:focus {
  outline: 2px solid var(--site-accent);
  outline-offset: 1px;
}
.field-file {
  border: 1px dashed var(--surface-line);
  border-radius: 7px;
  padding: 1.5rem;
  text-align: center;
  font-size: 0.84rem;
  color: var(--ink-muted);
}

/* ---------- Program track cards (separatrixapplied.com) ---------- */
.track-card {
  background: #FFFFFF;
  border: 2px solid var(--site-accent);
  border-radius: 10px;
  padding: 1.75rem;
}
.track-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.6rem; }
.track-card p { font-size: 0.86rem; color: var(--ink-muted); line-height: 1.5; margin-bottom: 0.9rem; }
.track-card a { font-size: 0.82rem; color: var(--site-accent-dk); text-decoration: none; font-weight: 500; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--helidge-deep-bg);
  color: var(--helidge-muted-dk);
  padding: 3.5rem 0 1.75rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 2.5rem;
}
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; gap: 1.75rem; } }
.footer-col h4 {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.4px;
  color: var(--helidge-light);
  margin-bottom: 0.7rem;
}
.footer-col p, .footer-col a {
  display: block;
  font-size: 0.82rem;
  color: var(--helidge-muted-dk);
  text-decoration: none;
  margin-bottom: 0.35rem;
}
.footer-col a:hover, .footer-col a:focus-visible { color: var(--helidge-muted); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.74rem;
}

/* ---------- Reserve banner (spukaneesystems.com) ---------- */
.reserve-banner {
  background: #FAEEDA;
  color: #633806;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 500;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--regional-color);
}

/* ---------- Skip link (a11y) ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--site-accent);
  color: var(--helidge-navy);
  padding: 0.6rem 1rem;
  z-index: 100;
  border-radius: 0 0 6px 0;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 2px solid var(--site-accent); outline-offset: 2px; }
