/* ==========================================================================
   Boardview Analytics — site stylesheet
   Design System 1.0: restrained, executive, calm, clear, credible.
   ========================================================================== */

:root {
  --blue: #0A2E8A;
  --blue-dark: #082569;
  --slate: #17202F;
  --muted: #5C697A;
  --bg-light: #F5F8FC;
  --line: #D9E2EE;
  --white: #FFFFFF;

  /* diagram accent palette — diagrams only, never buttons/links/headings */
  --teal: #5FA8A0;
  --amber: #D9A441;
  --coral: #D97B66;
  --violet: #8578B8;
  --green: #6FA86F;

  --font-head: "Bahnschrift SemiBold", "Segoe UI", "Inter", Arial, sans-serif;
  --font-body: "Avenir Next LT Pro", "Segoe UI", "Inter", Arial, sans-serif;

  --maxw: 1120px;
  --radius: 20px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--slate);
  background: var(--white);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--slate);
  letter-spacing: -0.01em;
  margin: 0 0 16px;
}
h1 { font-size: clamp(32px, 4.4vw, 50px); line-height: 1.12; color: var(--slate); }
h2 { font-size: clamp(26px, 3.2vw, 36px); line-height: 1.18; }
h3 { font-size: clamp(19px, 2vw, 22px); line-height: 1.3; }
p { margin: 0 0 18px; color: var(--slate); }
p.lede { font-size: 19px; color: var(--muted); max-width: 640px; }

.eyebrow {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 12px;
  display: block;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15.5px;
  padding: 13px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--blue-dark); }
.btn-secondary { background: var(--white); color: var(--blue); border-color: var(--line); }
.btn-secondary:hover { background: var(--bg-light); }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.btn-nav { padding: 10px 20px; font-size: 15px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.96);
  backdrop-filter: saturate(150%) blur(6px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 14px; padding-bottom: 14px; gap: 14px;
}
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand img { height: 34px; width: auto; }
/* The primary nav is the ONLY place the two header CTAs live — they are
   the last two items in .nav-links, right after Contact. There is no
   second copy anywhere in the header, so there is nothing left to
   duplicate at any viewport width. */
nav[aria-label="Primary"] { flex: 1; min-width: 0; }
.nav-links {
  display: flex; gap: 22px; align-items: center; list-style: none;
  margin: 0; padding: 0; justify-content: flex-end;
}
.nav-links a {
  color: var(--slate); font-weight: 600; font-size: 15px;
  padding: 6px 2px; border-bottom: 2px solid transparent;
}
.nav-links a:hover, .nav-links a[aria-current="page"] {
  color: var(--blue); text-decoration: none; border-bottom-color: var(--blue);
}
/* Header CTAs use their own classes, matching 5-minute-test.html exactly.
   They intentionally do NOT inherit the generic .btn pill styles. */
.nav-links li.nav-cta-item a.nav-cta {
  padding: 9px 18px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  opacity: 1 !important;
  white-space: nowrap;
  border-bottom: none;
  display: inline-block;
  transition: background .15s ease, border-color .15s ease;
}
.nav-links li.nav-cta-item a.nav-cta:hover {
  text-decoration: none;
  border-bottom: none;
}
.nav-links li.nav-cta-item a.nav-cta-primary,
.nav-links li.nav-cta-item a.nav-cta-primary:link,
.nav-links li.nav-cta-item a.nav-cta-primary:visited,
.nav-links li.nav-cta-item a.nav-cta-primary:hover,
.nav-links li.nav-cta-item a.nav-cta-primary:active,
.nav-links li.nav-cta-item a.nav-cta-primary:focus {
  background: var(--blue);
  color: var(--white) !important;
  border: 1px solid var(--blue);
}
.nav-links li.nav-cta-item a.nav-cta-primary:hover,
.nav-links li.nav-cta-item a.nav-cta-primary:focus {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
}
.nav-links li.nav-cta-item a.nav-cta-secondary,
.nav-links li.nav-cta-item a.nav-cta-secondary:link,
.nav-links li.nav-cta-item a.nav-cta-secondary:visited,
.nav-links li.nav-cta-item a.nav-cta-secondary:hover,
.nav-links li.nav-cta-item a.nav-cta-secondary:active,
.nav-links li.nav-cta-item a.nav-cta-secondary:focus {
  background: var(--white);
  color: var(--blue) !important;
  border: 1px solid var(--line);
  padding: 9px 26px;
}
.nav-links li.nav-cta-item a.nav-cta-secondary:hover,
.nav-links li.nav-cta-item a.nav-cta-secondary:focus {
  border-color: var(--blue);
}
.nav-toggle {
  display: none; background: none; border: 1px solid var(--line); border-radius: 10px;
  width: 42px; height: 38px; cursor: pointer; flex-shrink: 0;
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--slate); margin: 4px auto; }

/* ---------- sections ---------- */
section { padding: 74px 0; }
section.tight { padding: 54px 0; }
.bg-light { background: var(--bg-light); }
.bg-blue { background: var(--blue); color: var(--white); }
.bg-blue h2, .bg-blue h3 { color: var(--white); }
.bg-blue p { color: rgba(255,255,255,0.86); }
.bg-blue .eyebrow { color: rgba(255,255,255,0.75); }
.divider { border: none; border-top: 1px solid var(--line); margin: 0; }

.hero { padding: 84px 0 60px; }
.hero .eyebrow { margin-bottom: 14px; }
.hero h1 { max-width: 760px; }
.hero p.lede { margin-top: 18px; margin-bottom: 30px; }
.fit-line { font-size: 14px; color: var(--muted); margin: 22px 0 0; }
.fit-line a { font-weight: 700; }

/* ---------- cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 32px; }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 26px; box-shadow: 0 1px 2px rgba(23,32,47,0.04);
}
.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); margin-bottom: 14px; font-size: 15.5px; }
.card a.more { font-weight: 700; font-size: 14.5px; }

.diagram-frame {
  background: var(--bg-light); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; margin: 30px 0; overflow-x: auto;
}
.diagram-frame svg { display: block; margin: 0 auto; max-width: 100%; height: auto; }
.diagram-caption { text-align: center; font-size: 13.5px; color: var(--muted); margin-top: 10px; }

.split { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: start; }
.service-text { max-width: 700px; }
.diagram-wide { margin-top: 6px; }

ul.plain { margin: 0 0 18px; padding-left: 22px; }
ul.plain li { margin-bottom: 9px; color: var(--slate); }
ul.plain.muted li { color: var(--muted); }

.pill-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.pill-list li {
  background: var(--white); border: 1px solid var(--line); border-radius: 14px;
  padding: 16px 18px; font-size: 15.5px;
}
.pill-list li strong { color: var(--blue); }

.principle-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 30px; }
.principle { border-left: 3px solid var(--blue); padding: 4px 0 4px 18px; }
.principle h3 { font-size: 17px; margin-bottom: 6px; }
.principle p { color: var(--muted); font-size: 15px; margin-bottom: 0; }

.stat-row { display: flex; gap: 40px; margin-top: 24px; flex-wrap: wrap; }
.stat-row .stat b { display: block; font-family: var(--font-head); font-size: 30px; color: var(--blue); }
.stat-row .stat span { color: var(--muted); font-size: 14px; }

.cta-band { text-align: center; }
.cta-band h2 { max-width: 620px; margin-left: auto; margin-right: auto; }
.cta-band p.lede { margin-left: auto; margin-right: auto; text-align: center; }
.cta-band .btn-row { justify-content: center; }

.next-links { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 10px; }
.next-links a {
  font-weight: 700; font-size: 14.5px; padding: 8px 4px;
}

/* ---------- footer ---------- */
.site-footer { background: var(--slate); color: rgba(255,255,255,0.75); padding: 46px 0 30px; }
.site-footer .wrap {
  display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap;
}
.site-footer .foot-brand { display: flex; align-items: center; gap: 12px; }
.site-footer .foot-brand img { height: 26px; filter: brightness(0) invert(1); opacity: 0.92; }
.site-footer .foot-tagline { font-size: 14px; color: rgba(255,255,255,0.55); margin-top: 4px; }
.site-footer nav { display: flex; gap: 22px; flex-wrap: wrap; }
.site-footer nav a { color: rgba(255,255,255,0.75); font-size: 14.5px; font-weight: 600; }
.site-footer nav a:hover { color: var(--white); }
.foot-bottom {
  max-width: var(--maxw); margin: 30px auto 0; padding: 20px 28px 0; border-top: 1px solid rgba(255,255,255,0.12);
  font-size: 13px; color: rgba(255,255,255,0.45);
}

/* ---------- contact page ---------- */
.contact-card {
  max-width: 640px; margin: 0 auto; text-align: center;
  background: var(--bg-light); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 48px 40px;
}
.contact-card .btn-primary { font-size: 17px; padding: 16px 34px; }
.expect-list { text-align: left; max-width: 560px; margin: 40px auto 0; }
/* Tighten the gap between the contact-page intro and the "Book a time to
   talk" card that follows it (roughly a 40-45% cut to the combined hero +
   section gap). Scoped to this one section via its own class so .hero and
   the shared section.tight rule — used elsewhere — are untouched. */
section.tight.contact-book-gap { padding-top: 6px; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .card-grid { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .principle-grid { grid-template-columns: 1fr; }
}
/* The header now carries two nav CTAs instead of one, so it needs to drop
   into the mobile dropdown a bit earlier than the original single-CTA
   design did — otherwise the extra button crowds the 760–1040px range.
   Everything else (section/footer spacing) still switches at 760px. */
@media (max-width: 1040px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .site-header.open .nav-links {
    display: flex; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--white); border-bottom: 1px solid var(--line);
    flex-direction: column; padding: 18px 28px; gap: 16px;
  }
  .nav-links li.nav-cta-item { width: 100%; margin-top: 4px; }
  .nav-links li.nav-cta-item a { display: block; text-align: center; }
}
@media (max-width: 760px) {
  section { padding: 54px 0; }
  .hero { padding: 44px 0 40px; }
  .site-footer .wrap { flex-direction: column; align-items: flex-start; }
  section.tight.contact-book-gap { padding-top: 10px; }
}

/* ---------- interactive tools ---------- */
.tools-hero { padding-bottom: 54px; }
.tool-feature-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 38px; box-shadow: 0 1px 2px rgba(23,32,47,0.04); max-width: 820px;
}
.tool-copy h2 { margin-top: 10px; }
.tool-copy h3 { color: var(--blue); margin-top: 18px; }
.tool-copy p { color: var(--muted); max-width: 720px; }
.tool-badge {
  display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .12em;
  text-transform: uppercase; color: var(--blue); background: var(--bg-light);
  border: 1px solid var(--line); border-radius: 999px; padding: 5px 10px;
}
.tools-coming-inner { max-width: 780px; }
.tools-coming-inner p { color: var(--muted); }
.tools-coming-inner p strong { color: var(--slate); }
@media (max-width: 680px){
  .tool-feature-card { padding: 28px 22px; }
}
