/* ════════════════════════════════════════════════
   PROTOCOL | OPERATIONAL ARCHITECTURE
   Shared site stylesheet
   ════════════════════════════════════════════════ */

:root {
  --navy:       #0B1F3A;
  --command:    #1A4F80;
  --blueprint:  #2E6DA4;
  --signal:     #7EA8CC;
  --frost:      #E8EEF4;
  --gold:       #C8963C;
  --gold-bg:    #FBF5EA;
  --white:      #FFFFFF;
  --clearfield: #F4F6F9;
  --text-dark:  #1A2B3C;
  --text-mid:   #4A5C6A;
  --text-light: #7A8F9E;
  --border:     #D7E0E9;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', Arial, Helvetica, sans-serif;
  background: var(--white);
  color: var(--text-dark);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }

.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── SITE HEADER / NAV ── */
.site-header {
  background: var(--navy);
  padding: 1.1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.site-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.site-brand-name { font-size: 14px; font-weight: 600; color: var(--white); letter-spacing: 0.03em; }
.site-brand-sub { font-size: 8px; color: var(--signal); letter-spacing: 0.16em; text-transform: uppercase; margin-top: 1px; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}
.site-nav a {
  font-size: 13.5px;
  font-weight: 500;
  color: #B7C9DA;
  transition: color 0.15s;
  margin-left: 1.75rem;
}
.site-nav a:first-child { margin-left: 0; }
.site-nav a:hover, .site-nav a.active { color: var(--white); }
.site-nav a.active { color: var(--signal); }

.site-nav-cta {
  background: var(--gold);
  color: var(--navy) !important;
  padding: 10px 18px;
  border-radius: 7px;
  font-weight: 600 !important;
  font-size: 13px !important;
}
.site-nav-cta:hover { background: #D9A654; color: var(--navy) !important; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 24px;
  cursor: pointer;
}

@media (max-width: 860px) {
  .site-nav { display: none; }
  .site-nav.mobile-open {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy);
    padding: 1.25rem 1.5rem 1.75rem;
    border-top: 1px solid rgba(255,255,255,0.08);
  }
  .nav-toggle { display: block; }
}

/* ── SECTION DIVIDER (triangle tick between major sections) ── */
.section-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.section-divider svg { opacity: 0.35; }

/* ── PAGE HERO (shared pattern across inner pages) ── */
.page-hero {
  background: var(--navy);
  padding: 4.5rem 0 4rem;
  position: relative;
  overflow: hidden;
}
.page-hero .wrap { position: relative; }
.page-hero-graphic {
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  width: 320px;
  height: 320px;
  pointer-events: none;
  z-index: 0;
}
@media (max-width: 1180px) {
  .page-hero-graphic { right: -30px; opacity: 0.7; }
}
@media (max-width: 860px) {
  .page-hero-graphic { display: none; }
}
.page-hero-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 1.25rem;
  position: relative;
  z-index: 1;
}
.page-hero-kicker-line {
  width: 28px;
  height: 1.5px;
  background: var(--gold);
}
.page-eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--signal);
  margin: 0;
}
.page-headline {
  font-size: clamp(2rem, 4.4vw, 3.2rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: var(--white);
  max-width: 760px;
  margin-bottom: 1.25rem;
  position: relative;
  z-index: 1;
}
.page-sub {
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  line-height: 1.6;
  color: #B7C9DA;
  max-width: 600px;
  position: relative;
  z-index: 1;
}
.page-cta-row {
  display: flex;
  gap: 14px;
  margin-top: 2rem;
  position: relative;
  z-index: 1;
  flex-wrap: wrap;
}

/* ── BUTTONS ── */
.btn {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 14.5px;
  font-weight: 600;
  padding: 13px 24px;
  border-radius: 8px;
  cursor: pointer;
  border: none;
  transition: background 0.15s, transform 0.1s, border-color 0.15s;
}
.btn-primary { background: var(--gold); color: var(--navy); }
.btn-primary:hover { background: #D9A654; }
.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.3);
}
.btn-secondary:hover { border-color: var(--signal); color: var(--signal); }
.btn:active { transform: scale(0.98); }

/* ── SECTIONS ── */
section { padding: 5.5rem 0; }
.section-alt { background: var(--clearfield); }

.section-intro {
  display: flex;
  align-items: flex-start;
  gap: 22px;
  margin-bottom: 1rem;
}
.section-mark {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  margin-top: 3px;
}
.section-intro-text { flex: 1; }

.section-eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blueprint);
  margin-bottom: 0.85rem;
}
.section-eyebrow.center { text-align: center; }

.section-title {
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.28;
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
}
.section-title.center { text-align: center; max-width: 760px; margin-left: auto; margin-right: auto; }

.section-body {
  font-size: 15.5px;
  color: var(--text-mid);
  line-height: 1.7;
  max-width: 680px;
}
.section-body.center { text-align: center; margin-left: auto; margin-right: auto; }
.section-body + .section-body { margin-top: 1.1rem; }

/* ── ASYMMETRIC TWO-COLUMN SECTION (text + side rail) ── */
.split-section {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 3.5rem;
  align-items: start;
}
.split-rail {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.75rem;
  position: relative;
}
.section-alt .split-rail { background: var(--white); }
.split-rail-label {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 14px;
}
.split-rail-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--border);
}
.split-rail-item:first-of-type { border-top: none; padding-top: 0; }
.split-rail-num {
  font-size: 13px;
  font-weight: 700;
  color: var(--blueprint);
  flex-shrink: 0;
  width: 22px;
}
.split-rail-text { font-size: 13.5px; color: var(--text-dark); line-height: 1.5; }
.split-rail-text strong { display: block; color: var(--navy); font-weight: 600; margin-bottom: 2px; }

/* ── PAIN POINT / FEATURE LISTS ── */
.point-list {
  list-style: none;
  margin-top: 1.75rem;
  display: grid;
  gap: 14px;
}
.point-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  color: var(--text-dark);
  line-height: 1.55;
  padding: 16px 18px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.section-alt .point-item { background: var(--white); }
.point-mark {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 1px;
}

/* ── STAT CALLOUTS ── */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.stat-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.75rem 1.5rem;
  border-top: 3px solid var(--blueprint);
  position: relative;
}
.stat-num-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 10px;
}
.stat-num {
  font-size: clamp(1.7rem, 2.8vw, 2.2rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
}
.stat-label { font-size: 13.5px; color: var(--text-mid); line-height: 1.5; }
.stat-source { font-size: 11px; color: var(--text-light); margin-top: 8px; }

/* ── CARD GRIDS (method pillars, tiers, etc.) ── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
  margin-top: 2rem;
}
.card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.75rem;
  transition: border-color 0.18s, transform 0.18s;
}
.card:hover { border-color: var(--signal); transform: translateY(-2px); }
.section-alt .card { background: var(--white); }
.card-mark { width: 36px; height: 36px; margin-bottom: 1rem; }
.card-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blueprint);
  margin-bottom: 6px;
}
.card-title { font-size: 17px; font-weight: 600; color: var(--navy); margin-bottom: 10px; line-height: 1.35; }
.card-body { font-size: 14px; color: var(--text-mid); line-height: 1.65; }
.card-body ul { margin-top: 10px; padding-left: 1.1rem; }
.card-body li { margin-bottom: 6px; }

/* ── CONNECTED STEP FLOW (sequential process, chevron-linked) ── */
.step-flow {
  display: flex;
  width: 100%;
  margin-top: 2.5rem;
}
.step-flow-item {
  position: relative;
  background: var(--white);
  border: 1.5px solid var(--blueprint);
  border-radius: 10px;
  padding: 1.6rem 1.75rem;
  flex: 1;
  min-width: 0;
}
.step-flow-item.alt { background: var(--frost); }
.section-alt .step-flow-item.alt { background: var(--clearfield); }
.step-flow-connector {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 32px;
  align-self: stretch;
  position: relative;
}
.step-flow-connector::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1.5px;
  background: var(--border);
  z-index: 0;
}
.step-flow-connector svg { position: relative; z-index: 1; background: var(--white); border-radius: 50%; padding: 6px; box-sizing: content-box; }
.step-flow-num {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--blueprint);
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
}
.step-flow-title {
  font-size: 15.5px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 8px;
  line-height: 1.35;
  position: relative;
  z-index: 1;
}
.step-flow-body {
  font-size: 13px;
  color: var(--text-mid);
  line-height: 1.55;
  position: relative;
  z-index: 1;
}
.card-best-for {
  font-size: 12.5px;
  color: var(--text-light);
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.card-best-for strong { color: var(--text-mid); }

/* ── TIER CARDS (Services page) ── */
.tier-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 2rem;
}
.tier-eyebrow {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blueprint);
  margin-bottom: 8px;
}
.tier-title { font-size: 21px; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.tier-best-for { font-size: 13.5px; color: var(--text-mid); margin-bottom: 1.25rem; line-height: 1.55; font-style: italic; }
.tier-body { font-size: 14.5px; color: var(--text-mid); line-height: 1.65; margin-bottom: 1.25rem; }
.tier-included-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 10px;
}
.tier-included { list-style: none; display: grid; gap: 9px; margin-bottom: 1.25rem; }
.tier-included li { display: flex; align-items: flex-start; gap: 9px; font-size: 14px; color: var(--text-dark); line-height: 1.5; }
.tier-included li svg { flex-shrink: 0; margin-top: 3px; }
.tier-timeline { font-size: 13px; color: var(--text-light); margin-bottom: 1.5rem; }
.tier-timeline strong { color: var(--text-mid); }

/* ── COMPARISON TABLE ── */
.compare-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 2rem;
  font-size: 13.5px;
}
.compare-table th, .compare-table td {
  border: 1px solid var(--border);
  padding: 14px 16px;
  text-align: left;
  vertical-align: top;
}
.compare-table th {
  background: var(--navy);
  color: var(--white);
  font-weight: 600;
  font-size: 12.5px;
}
.compare-table td { color: var(--text-mid); background: var(--white); }
.compare-table td:first-child, .compare-table th:first-child { font-weight: 600; color: var(--navy); background: var(--frost); }

/* ── PULL QUOTE (About page) ── */
.pull-quote-block {
  background: var(--clearfield);
  border-left: 4px solid var(--blueprint);
  border-radius: 4px 16px 16px 4px;
  padding: 2.5rem 2.5rem 2.5rem 2.75rem;
  margin-top: 1.75rem;
  position: relative;
  overflow: hidden;
}
.pull-quote-mark {
  position: absolute;
  top: 1.25rem;
  right: 1.75rem;
  width: 46px;
  height: 46px;
  opacity: 0.5;
}
.pull-quote-block p {
  font-size: 15.5px;
  color: var(--text-dark);
  line-height: 1.75;
  margin-bottom: 1.1rem;
  position: relative;
  z-index: 1;
}
.pull-quote-attribution {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--command);
  margin-top: 1.25rem;
  position: relative;
  z-index: 1;
}

/* ── PRINCIPLE CARDS (About page) ── */
.principle-card { padding: 0; background: transparent; border: none; }
.principle-card .card-title { font-size: 16px; }

/* ── PRACTICE TYPE PILLS (Clinical page) ── */
.pill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 1.75rem;
}
.pill {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 99px;
  padding: 9px 18px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-dark);
}

/* ── SOURCES / FOOTNOTES ── */
.sources-block {
  background: var(--clearfield);
  border-radius: 12px;
  padding: 1.75rem 2rem;
  margin-top: 1rem;
}
.sources-block ol { padding-left: 1.2rem; }
.sources-block li { font-size: 13px; color: var(--text-mid); line-height: 1.6; margin-bottom: 10px; }
.sources-disclaimer { font-size: 12px; color: var(--text-light); margin-top: 1rem; line-height: 1.6; }

/* ── FINAL CTA BANNER ── */
.cta-banner {
  background: var(--navy);
  padding: 4.5rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner-eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--signal);
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}
.cta-banner-title {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  font-weight: 700;
  color: var(--white);
  max-width: 680px;
  margin: 0 auto 1rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
  position: relative;
  z-index: 1;
}
.cta-banner-body {
  font-size: 15px;
  color: #B7C9DA;
  max-width: 540px;
  margin: 0 auto 2rem;
  line-height: 1.6;
  position: relative;
  z-index: 1;
}
.cta-banner-row {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* ── SITE FOOTER ── */
.site-footer {
  background: var(--navy);
  padding: 2.5rem 0 1.75rem;
}
.site-footer .wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.75rem;
}
.footer-brand { display: flex; align-items: center; gap: 9px; margin-bottom: 0.5rem; }
.footer-brand-name { font-size: 13px; font-weight: 600; color: var(--white); }
.footer-tagline { font-size: 13px; color: var(--signal); }
.footer-meta { font-size: 12px; color: #5C7390; }
.footer-meta a { color: #8BA5BF; }
.footer-meta a:hover { color: var(--signal); }

/* ── UTILITY ── */
.center { text-align: center; }
.mt-lg { margin-top: 2.5rem; }

@media (max-width: 760px) {
  section { padding: 3.25rem 0; }
  .page-hero { padding: 2.75rem 0 2.5rem; }
  .card-grid, .card-grid.cols-3 { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr; }
  .split-section { grid-template-columns: 1fr; gap: 2rem; }
  .section-intro { gap: 14px; }
  .section-mark { width: 24px; height: 24px; }
  .step-flow { flex-direction: column; gap: 0; }
  .step-flow-item { border-radius: 10px; }
  .step-flow-connector { width: auto; height: 28px; transform: rotate(90deg); margin: 2px 0; }
  .compare-table { display: block; overflow-x: auto; white-space: nowrap; }
  .page-cta-row, .cta-banner-row { flex-direction: column; }
  .page-cta-row .btn, .cta-banner-row .btn { width: 100%; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
