/* =========================================================
   BOS Marketing Site — base styles
   Tokens derived from BOS Brand Guide (May 2026)
   Navy #0C304C · Red #DC2626 · White · Dark #0F0D1D · Steel #B0C4D8
   ========================================================= */

:root {
  --navy:  #0C304C;
  --red:   #DC2626;
  --white: #FFFFFF;
  --dark:  #0F0D1D;
  --steel: #B0C4D8;

  --font-sans: "Helvetica Neue", Helvetica, Arial, "DejaVu Sans", sans-serif;

  --maxw: 720px;
  --gutter: clamp(1.25rem, 5vw, 3rem);
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--navy);
  color: var(--white);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a { color: inherit; }

/* Accessibility */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--red);
  color: var(--white);
  padding: 0.5rem 0.85rem;
  z-index: 10;
}
.skip-link:focus { left: 0.5rem; top: 0.5rem; }

:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }

/* ---------- Hero ---------- */
.hero {
  flex: 1 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(3rem, 8vh, 6rem) var(--gutter);
}

.hero__inner {
  width: 100%;
  max-width: var(--maxw);
  text-align: center;
}

.lockup {
  width: clamp(180px, 42vw, 280px);
  height: auto;
  margin: 0 auto clamp(1.5rem, 5vh, 2.75rem);
  display: block;
}
.lockup__bos  { fill: var(--white); font-weight: 700; font-size: 46px; letter-spacing: 1.5px; }
.lockup__name { fill: var(--steel); font-weight: 700; font-size: 16px; letter-spacing: 3px; }
.lockup__tag  { fill: var(--white); font-style: italic; font-size: 18px; }

.headline {
  font-size: clamp(2.1rem, 6.5vw, 3.4rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0 0 1.1rem;
}

.subhead {
  font-size: clamp(1.05rem, 2.6vw, 1.3rem);
  color: var(--steel);
  max-width: 38ch;
  margin: 0 auto 2.25rem;
}

/* ---------- CTA ---------- */
.cta-row { display: flex; flex-direction: column; align-items: center; gap: 0.85rem; }

.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 700;
  border-radius: 4px;
  padding: 0.95rem 1.75rem;
  font-size: 1.05rem;
  transition: transform 0.12s ease, background 0.12s ease;
}
.btn--primary { background: var(--red); color: var(--white); }
.btn--primary:hover { transform: translateY(-2px); background: #c41f1f; }

.cta-note {
  margin: 0;
  font-style: italic;
  color: var(--steel);
  font-size: 0.95rem;
}

/* ---------- Footer ---------- */
.footer {
  flex-shrink: 0;
  border-top: 3px solid var(--red);
  padding: 1.5rem var(--gutter);
  text-align: center;
  font-size: 0.9rem;
  color: var(--steel);
}
.footer__line { margin: 0 0 0.35rem; }
.footer__line a { text-decoration: none; }
.footer__line a:hover { text-decoration: underline; }
.footer__line span { margin: 0 0.5rem; color: var(--red); }
.footer__copy { margin: 0; font-size: 0.8rem; opacity: 0.7; }

/* ---------- Site header (interior pages) ---------- */
.site-header {
  padding: 1.5rem var(--gutter) 0;
  display: flex;
  justify-content: center;
}
.site-header__logo { display: inline-block; line-height: 0; }
.site-header__logo svg { width: 64px; height: 64px; display: block; }
.markmark { fill: var(--white); font-weight: 700; font-size: 40px; letter-spacing: 1px; }

/* ---------- Interior page layout ---------- */
.page {
  flex: 1 0 auto;
  padding: clamp(2rem, 6vh, 3.5rem) var(--gutter);
  display: flex;
  justify-content: center;
}
.page__inner { width: 100%; max-width: 560px; }

.page__title {
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 0.9rem;
  text-align: center;
}
.page__lead {
  color: var(--steel);
  font-size: 1.05rem;
  text-align: center;
  margin: 0 auto 2.5rem;
  max-width: 46ch;
}
.page__lead strong { color: var(--white); font-style: italic; font-weight: 600; }

/* ---------- Form ---------- */
.form { display: flex; flex-direction: column; gap: 1.15rem; }
.form__hp { position: absolute; left: -9999px; }

.form__row { display: flex; flex-direction: column; gap: 0.4rem; }
.form__row label { font-size: 0.92rem; font-weight: 700; color: var(--white); }
.form__opt { font-weight: 400; color: var(--steel); }

.form input,
.form select,
.form textarea {
  font-family: inherit;
  font-size: 1rem;
  color: var(--dark);
  background: var(--white);
  border: 1px solid transparent;
  border-radius: 4px;
  padding: 0.7rem 0.8rem;
  width: 100%;
}
.form textarea { resize: vertical; }
.form input:focus,
.form select:focus,
.form textarea:focus { border-color: var(--red); }

.form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.15rem;
}

.form button { margin-top: 0.5rem; align-self: flex-start; cursor: pointer; border: none; }

@media (max-width: 480px) {
  .form__grid { grid-template-columns: 1fr; }
  .form button { align-self: stretch; text-align: center; }
}

/* ---------- Motion preference ---------- */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* =========================================================
   Homepage v2 + global navigation
   ========================================================= */
:root { --wide: 1120px; --navy-2: #10395A; }

.wrap { max-width: var(--wide); margin: 0 auto; padding: 0 var(--gutter); }
.measure { max-width: 760px; }

/* ---------- Sticky nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--navy);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.nav__inner {
  position: relative;
  max-width: var(--wide); margin: 0 auto;
  padding: 0.7rem var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.nav__brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--white); }
.nav__mark { width: 38px; height: 38px; display: block; }
.nav__brandname { font-weight: 700; font-size: 0.95rem; letter-spacing: 0.5px; white-space: nowrap; }
.nav__menu { display: flex; align-items: center; gap: 1.75rem; }
.nav__menu a { color: var(--white); text-decoration: none; font-size: 0.95rem; font-weight: 600; }
.nav__menu a:hover { color: var(--steel); }
.nav__cta { background: var(--red); padding: 0.5rem 1.05rem; border-radius: 4px; }
.nav__cta:hover { color: var(--white) !important; background: #c41f1f; }

.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.nav__toggle span { width: 24px; height: 2px; background: var(--white); display: block; }

@media (max-width: 820px) {
  .nav__brandname { font-size: 0.85rem; }
  .nav__toggle { display: flex; }
  .nav__menu {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--navy);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 0.25rem var(--gutter) 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .nav.is-open .nav__menu { display: flex; }
  .nav__menu a { padding: 0.85rem 0; border-top: 1px solid rgba(255,255,255,0.07); }
  .nav__cta { text-align: center; margin-top: 0.75rem; border-top: none; }
}

/* ---------- Hero v2 ---------- */
.hero2 { background: var(--navy); padding: clamp(3.5rem, 9vh, 6.5rem) 0; text-align: center; }
.hero2__inner { max-width: 780px; margin: 0 auto; }
.eyebrow { color: var(--steel); font-weight: 700; text-transform: uppercase; letter-spacing: 2px; font-size: 0.8rem; margin: 0 0 1rem; }
.hero2__title { font-size: clamp(2.3rem, 6.5vw, 3.6rem); font-weight: 700; line-height: 1.08; letter-spacing: -0.01em; margin: 0 0 1.15rem; }
.hero2__lead { color: var(--steel); font-size: clamp(1.05rem, 2.4vw, 1.3rem); max-width: 44ch; margin: 0 auto 2.25rem; }
.hero2__cta { display: flex; flex-direction: column; align-items: center; gap: 0.85rem; }
.hero2__note { font-style: italic; color: var(--steel); font-size: 0.95rem; }

/* ---------- Generic sections ---------- */
.section { padding: clamp(3rem, 7vh, 5.5rem) 0; }
.section--navy { background: var(--navy); color: var(--white); }
.section--light { background: var(--white); color: var(--dark); }

.label { text-transform: uppercase; letter-spacing: 2px; font-size: 0.78rem; font-weight: 700; color: var(--red); margin: 0 0 0.8rem; }
.label--accent { color: var(--white); }
.section__title { font-size: clamp(1.7rem, 4.5vw, 2.5rem); font-weight: 700; line-height: 1.15; letter-spacing: -0.01em; margin: 0 0 1.6rem; max-width: 20ch; }
.section__title--dark { color: var(--navy); }
.prose { font-size: 1.15rem; line-height: 1.7; max-width: 62ch; margin: 0; }
.prose--light { color: var(--steel); }

/* ---------- Service cards (navy) ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.25rem; }
.card { background: var(--navy-2); border-radius: 6px; padding: 1.5rem; border-top: 3px solid var(--red); }
.card__title { font-size: 1.15rem; font-weight: 700; margin: 0 0 0.5rem; color: var(--white); }
.card__body { margin: 0; color: var(--steel); font-size: 1rem; line-height: 1.55; }

/* ---------- Steps (light) ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 2rem; }
.step__num { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: var(--red); color: #fff; font-weight: 700; font-size: 1.2rem; margin-bottom: 0.9rem; }
.step__title { font-size: 1.2rem; font-weight: 700; color: var(--navy); margin: 0 0 0.45rem; }
.step__body { margin: 0; color: var(--dark); opacity: 0.85; line-height: 1.6; }

/* ---------- Segments (light) ---------- */
.segments { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.6rem 2rem; }
.segment h3 { font-size: 1.1rem; color: var(--navy); margin: 0 0 0.4rem; font-weight: 700; border-left: 3px solid var(--red); padding-left: 0.65rem; }
.segment p { margin: 0; padding-left: 0.65rem; color: var(--dark); opacity: 0.85; line-height: 1.55; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--navy); border-top: 4px solid var(--red); padding: clamp(3rem, 7vh, 5rem) 0; text-align: center; color: var(--white); }
.cta-band__title { font-size: clamp(1.8rem, 4.5vw, 2.6rem); font-weight: 700; margin: 0 0 1rem; line-height: 1.15; }
.cta-band__lead { color: var(--steel); font-size: 1.15rem; max-width: 48ch; margin: 0 auto 2rem; }

/* ---------- Footer nav + document pages ---------- */
.footer__nav { margin: 0 0 0.5rem; }
.footer__nav a { color: var(--steel); text-decoration: none; }
.footer__nav a:hover { text-decoration: underline; color: var(--white); }
.footer__nav span { margin: 0 0.35rem; color: var(--steel); }

.doc { max-width: 760px; }
.doc h2 { font-size: 1.3rem; color: var(--navy); margin: 2.2rem 0 0.6rem; font-weight: 700; }
.doc p { font-size: 1.05rem; line-height: 1.7; margin: 0 0 1rem; color: var(--dark); }
.doc ul { margin: 0 0 1.25rem; padding-left: 1.25rem; }
.doc li { margin: 0 0 0.45rem; line-height: 1.65; color: var(--dark); }
.doc a { color: var(--navy); font-weight: 600; }
.doc .updated { margin-top: 2.25rem; padding-top: 1rem; border-top: 1px solid rgba(15,13,29,0.15); font-size: 0.95rem; color: var(--dark); opacity: 0.75; }

.seg-lead { margin: 0 0 2.25rem; max-width: 60ch; }

/* ---------- About page bits ---------- */
.card--light { background: #EEF3F8; }
.card--light .card__title { color: var(--navy); }
.card--light .card__body { color: var(--dark); }
.block { margin-top: 1.85rem; }
.block__title { font-size: 1.25rem; font-weight: 700; color: var(--white); margin: 0 0 0.5rem; }
.textlink { display: inline-block; margin-top: 1.4rem; color: var(--white); font-weight: 700; text-decoration: none; border-bottom: 2px solid var(--red); padding-bottom: 2px; }
.textlink:hover { color: var(--steel); }

.textlink--navy { color: var(--navy); }
.textlink--navy:hover { color: var(--red); }

/* ---------- Services / capabilities ---------- */
.capabilities { display: flex; flex-direction: column; }
.capability { display: grid; grid-template-columns: 1.15fr 1fr; gap: 1.25rem 2.5rem; padding: 2.25rem 0; border-top: 1px solid rgba(15,13,29,0.12); }
.capability:first-child { border-top: none; padding-top: 0.25rem; }
.capability__num { color: var(--red); font-weight: 700; letter-spacing: 2px; text-transform: uppercase; font-size: 0.75rem; margin: 0 0 0.35rem; }
.capability__title { font-size: 1.4rem; color: var(--navy); font-weight: 700; margin: 0 0 0.6rem; }
.capability__desc { color: var(--dark); line-height: 1.65; margin: 0 0 0.9rem; }
.capability__impact { color: var(--navy); font-style: italic; background: #EEF3F8; border-left: 3px solid var(--red); padding: 0.6rem 0.85rem; margin: 0; font-size: 0.98rem; line-height: 1.5; }
.capability__list { list-style: none; margin: 0; padding: 0; }
.capability__list li { position: relative; padding-left: 1.6rem; margin-bottom: 0.55rem; line-height: 1.5; color: var(--dark); }
.capability__list li::before { content: "\2713"; position: absolute; left: 0; color: var(--red); font-weight: 700; }
@media (max-width: 720px) { .capability { grid-template-columns: 1fr; gap: 1rem; } }

/* ---------- Demo hub ---------- */
.hero2__btns { display: flex; gap: 0.85rem; flex-wrap: wrap; justify-content: center; }
.btn--ghost { background: transparent; color: var(--white); border: 1.5px solid rgba(255,255,255,0.5); }
.btn--ghost:hover { border-color: var(--white); background: rgba(255,255,255,0.08); transform: translateY(-2px); }

.demogrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.25rem; }
.demotile { display: block; text-decoration: none; background: #fff; border: 1px solid #E2E7EC; border-radius: 8px; padding: 1.4rem; box-shadow: 0 1px 2px rgba(12,48,76,.05), 0 6px 18px rgba(12,48,76,.06); }
.demotile h3 { color: var(--navy); font-size: 1.2rem; margin: 0.7rem 0 0.4rem; font-weight: 700; }
.demotile p { color: var(--dark); opacity: 0.8; margin: 0; line-height: 1.5; font-size: 0.98rem; }
a.demotile { transition: transform 0.12s ease, box-shadow 0.12s ease; }
a.demotile:hover { transform: translateY(-3px); box-shadow: 0 4px 10px rgba(12,48,76,.12), 0 14px 30px rgba(12,48,76,.10); }
.demotile--soon { opacity: 0.72; }
.demotile__badge { display: inline-block; font-size: 0.68rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; }
.demotile__badge.live { background: rgba(220,38,38,.12); color: var(--red); }
.demotile__badge.soon { background: #EEF1F4; color: #586572; }
.demotile__badge.ext { background: rgba(12,48,76,.08); color: var(--navy); }
.demotile__go { display: inline-block; margin-top: 0.9rem; color: var(--red); font-weight: 700; font-size: 0.95rem; }
.demotile--ext .demotile__go, a.demotile[target] .demotile__go { color: var(--navy); }
.demo-note { margin-top: 2rem; color: var(--dark); }
.demo-note a { color: var(--red); font-weight: 700; text-decoration: none; }
.demo-note a:hover { text-decoration: underline; }
