/* ============================================================
   Concordance Health AI — base stylesheet
   ============================================================ */

:root {
  --ink: #14251F;
  --ink-soft: #24382F;
  --signal: #2FA88A;
  --signal-dark: #1E7A63;
  --sage: #8FB5A9;
  --paper: #FDFDFB;
  --paper-dim: #F1F6F3;
  --line: #E1E9E4;
  --text: #1B2B26;
  --muted: #5C6F68;

  --font-serif: 'Lora', Georgia, serif;
  --font-sans: 'Poppins', 'Segoe UI', Arial, sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

img { max-width: 100%; display: block; }

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

ul { list-style: none; margin: 0; padding: 0; }

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 16px;
  color: var(--ink);
}

h1 { font-size: clamp(32px, 4.4vw, 52px); }
h1 em { font-style: italic; color: var(--signal-dark); }
h2 { font-size: clamp(26px, 3vw, 36px); }
h3 { font-size: 20px; }
h4 { font-size: 17px; }

p { margin: 0 0 16px; color: var(--muted); }

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================= HEADER / NAV ============================= */

header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(253, 253, 251, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

nav.wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
}

.logo svg { width: 36px; height: 36px; flex-shrink: 0; }

.logo-word {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.logo-name {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 21px;
  color: var(--ink);
}

.logo-sub {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 10.5px;
  letter-spacing: 0.16em;
  color: #2E4B6B;
  margin-top: 3px;
}

.navlinks {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

.navlinks a {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  position: relative;
  padding: 4px 0;
  transition: color 0.15s ease;
}

.navlinks a:hover { color: var(--ink); }

.navlinks a.active {
  color: var(--signal-dark);
}

.navlinks a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--signal);
  border-radius: 2px;
}

.nav-cta {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.03em;
  white-space: nowrap;
  background: var(--ink);
  color: var(--paper);
  padding: 11px 20px;
  border-radius: 999px;
  transition: background 0.15s ease, transform 0.15s ease;
}

.nav-cta:hover { background: var(--signal-dark); transform: translateY(-1px); }

.nav-panel {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px;
  height: 34px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
}

.nav-toggle .bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================= SHARED TEXT ELEMENTS ============================= */

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--signal-dark);
  margin-bottom: 14px;
}

.lede {
  font-size: 19px;
  max-width: 720px;
  color: var(--muted);
}

.big {
  font-size: 18px;
  max-width: 700px;
  color: var(--text);
}

.cta-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  padding: 14px 28px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  cursor: pointer;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--ink);
  color: var(--paper);
}

.btn-primary:hover { background: var(--signal-dark); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.btn-ghost:hover { border-color: var(--signal); color: var(--signal-dark); }

/* ============================= PAGEHEAD (interior pages) ============================= */

.pagehead {
  padding: 88px 0 56px;
  background: linear-gradient(180deg, var(--paper-dim), var(--paper));
  border-bottom: 1px solid var(--line);
}

.pagehead h1 { max-width: 820px; }

/* ============================= HERO (home) ============================= */

.hero {
  padding: 96px 0 32px;
  background: linear-gradient(180deg, var(--paper-dim), var(--paper));
}

.hero h1 { max-width: 780px; }

.hero-wave {
  padding-top: 24px;
  padding-bottom: 8px;
}

.waveline { width: 100%; height: 34px; display: block; }

/* ============================= CREDIBILITY STRIP ============================= */

.capabilities {
  background: var(--ink);
  color: rgba(253, 253, 251, 0.82);
  padding: 76px 0;
}

.capabilities h2 {
  color: var(--paper);
  max-width: 640px;
}

.capability-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 40px;
  margin-top: 32px;
  list-style: none;
}

.capability-grid li {
  position: relative;
  padding-left: 20px;
  font-size: 14.5px;
  line-height: 1.55;
  color: rgba(253, 253, 251, 0.78);
}

.capability-grid li b {
  color: var(--paper);
}

.capability-grid li::before {
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--signal);
}

/* ============================= WHY / LEADERSHIP ============================= */

.why {
  padding: 88px 0;
}

.why .wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.why-dark {
  background: var(--ink);
}

.why-dark .eyebrow { color: #8FB5A9; }
.why-dark h2 { color: var(--paper); }
.why-dark .big { color: rgba(253, 253, 251, 0.78); }

.why-dark .btn-ghost {
  color: var(--paper);
  border-color: rgba(253, 253, 251, 0.3);
}

.why-dark .btn-ghost:hover {
  border-color: var(--signal);
  color: var(--paper);
}

/* ============================= BREADTH TABLE ============================= */

.breadth { padding: 88px 0; }

table.domains {
  width: 100%;
  border-collapse: collapse;
  margin-top: 36px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}

table.domains th {
  text-align: left;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--paper-dim);
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
}

table.domains td {
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 15px;
  vertical-align: top;
}

table.domains tr:last-child td { border-bottom: none; }

td.domain {
  font-family: var(--font-serif);
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  width: 26%;
}

.breadth-footnote {
  margin-top: 28px;
  font-style: italic;
  color: var(--signal-dark);
  font-size: 15px;
}

/* ============================= PRESS ============================= */

.press {
  padding: 44px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper-dim);
}

.press .wrap {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  justify-content: space-between;
}

.press .label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.press .names {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}

.press .names span {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 17px;
  color: var(--ink-soft);
  opacity: 0.75;
}

/* ============================= RESULTS ============================= */

.results { padding: 88px 0; }

.results .wrap { padding-bottom: 40px; }

.result-grid {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.result-card {
  background: var(--paper-dim);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px;
}

.result-card .tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--signal-dark);
  background: rgba(47, 168, 138, 0.12);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.result-card h3 { font-size: 19px; margin-bottom: 10px; }
.result-card p { font-size: 14.5px; margin-bottom: 0; }

/* ============================= ENGAGE / PROCESS ============================= */

.engage {
  padding: 88px 0;
  background: var(--ink);
  color: rgba(253, 253, 251, 0.78);
}

.engage h2 { color: var(--paper); max-width: 640px; }

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 44px;
}

.step {
  border: 1px solid rgba(253, 253, 251, 0.14);
  border-radius: 14px;
  padding: 24px 20px;
  background: rgba(253, 253, 251, 0.03);
}

.step .num {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 600;
  color: var(--signal);
  margin-bottom: 14px;
}

.step h4 { color: var(--paper); margin-bottom: 8px; }
.step p { font-size: 14px; color: rgba(253, 253, 251, 0.62); margin-bottom: 0; }

.engage-note {
  margin-top: 40px;
  font-style: italic;
  font-size: 16px;
  color: var(--sage);
  max-width: 760px;
  border-left: 2px solid var(--signal);
  padding-left: 18px;
}

/* ============================= CONTACT HERO (CTA banner) ============================= */

.contact-hero {
  background: var(--ink);
  color: var(--paper);
  padding: 88px 0;
  text-align: center;
}

.contact-hero .wrap { max-width: 760px; }

.contact-hero h1 { color: var(--paper); margin: 0 auto 16px; }

.contact-hero p {
  color: rgba(253, 253, 251, 0.72);
  font-size: 17px;
  max-width: 620px;
  margin: 0 auto;
}

/* ============================= CONTACT PAGE BODY ============================= */

.contact-body .wrap {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 64px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contact-form label {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink);
  margin-top: 16px;
}

.contact-form label:first-child { margin-top: 0; }

.contact-form input,
.contact-form textarea {
  font-family: var(--font-sans);
  font-size: 15px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper-dim);
  color: var(--text);
  outline: none;
  transition: border-color 0.15s ease;
}

.contact-form input:focus,
.contact-form textarea:focus { border-color: var(--signal); }

.contact-form textarea { min-height: 140px; resize: vertical; }

.contact-form button { margin-top: 24px; align-self: flex-start; }

.field-hint {
  font-weight: 400;
  color: var(--muted);
  font-size: 12px;
  text-transform: none;
}

.radio-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-form .radio-group label.radio-option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 0;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper-dim);
  font-size: 14px;
  font-weight: 400;
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.15s ease;
}

.contact-form .radio-group label.radio-option:has(input:checked) {
  border-color: var(--signal);
}

.radio-option input[type="radio"] {
  margin-top: 3px;
  accent-color: var(--signal-dark);
  flex-shrink: 0;
}

.contact-side {
  background: var(--paper-dim);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 32px;
  height: fit-content;
}

.contact-side .role {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--signal-dark);
  margin-bottom: 10px;
}

.contact-side .email {
  display: inline-block;
  margin-top: 4px;
  font-weight: 500;
  color: var(--signal-dark);
  border-bottom: 1px solid var(--signal);
}

.cv-divider {
  height: 1px;
  background: var(--line);
}

.cv-list li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 12px;
  font-size: 14.5px;
  color: var(--muted);
}

.cv-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--signal);
}

/* ============================= PRICING ============================= */

.pricing { padding: 88px 0; }

.phase-label {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--signal-dark);
  margin-top: 56px;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.price-grid, .retainer-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.price-grid-3, .svc-phase-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.price-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px;
  display: flex;
  flex-direction: column;
}

.price-card h4 { margin-bottom: 6px; }

.price-card .price {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 600;
  color: var(--signal-dark);
  margin-bottom: 16px;
}

.price-card ul { margin-bottom: 12px; }

.price-card ul li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 10px;
  font-size: 14.5px;
  color: var(--muted);
}

.price-card ul li::before {
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--signal);
}

.price-card .fine {
  margin-top: auto;
  padding-top: 14px;
  font-size: 13px;
  color: var(--sage);
  font-style: italic;
}

.addons-note {
  margin-top: 20px;
  font-size: 14px;
  color: var(--muted);
}

table.addons {
  width: 100%;
  border-collapse: collapse;
  margin-top: 4px;
}

table.addons tr {
  border-bottom: 1px solid var(--line);
}

table.addons tr:last-child { border-bottom: none; }

table.addons td {
  padding: 16px 4px;
  font-size: 14.5px;
  color: var(--muted);
}

table.addons td.fee {
  text-align: right;
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 13.5px;
  color: var(--ink);
  padding-left: 20px;
}

.terms {
  margin-top: 56px;
  background: var(--paper-dim);
  border-radius: 14px;
  padding: 28px 32px;
}

.terms h4 { margin-bottom: 16px; }

.terms ul li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 12px;
  font-size: 14px;
  color: var(--muted);
}

.terms ul li::before {
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--signal);
}

.pdf-cta {
  margin-top: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  background: var(--ink);
  color: var(--paper);
  border-radius: 14px;
  padding: 32px;
}

.pdf-cta h4 { color: var(--paper); margin-bottom: 6px; }
.pdf-cta p { color: rgba(253, 253, 251, 0.68); margin-bottom: 0; }

/* ============================= SERVICES (svc-card) ============================= */

.svc-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px;
  display: flex;
  flex-direction: column;
}

.svc-card p { font-size: 14.5px; }

.svc-card .range {
  margin-top: auto;
  padding-top: 12px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--signal-dark);
  border-top: 1px solid var(--line);
}

/* ============================= TEAM ============================= */

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.team-card {
  background: var(--paper-dim);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 32px;
}

.team-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}

.team-photo {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--paper);
  box-shadow: 0 0 0 1px var(--line);
  flex-shrink: 0;
}

.team-name {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 18px;
  color: var(--ink);
}

.team-role {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--signal-dark);
}

.team-note {
  margin-top: 36px;
  font-size: 15px;
  color: var(--muted);
  border-left: 2px solid var(--signal);
  padding-left: 20px;
}

/* ============================= FOOTER ============================= */

footer {
  background: var(--ink);
  color: rgba(253, 253, 251, 0.6);
  padding: 48px 0;
  margin-top: 0;
}

footer .wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 18px;
}

.fmark {
  display: flex;
  align-items: center;
  gap: 10px;
}

.fmark svg { width: 30px; height: 30px; flex-shrink: 0; }

.fmark-word {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.fmark-name {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 16px;
  color: var(--paper);
}

.fmark-sub {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 9px;
  letter-spacing: 0.16em;
  color: var(--sage);
  margin-top: 3px;
}

.fnote {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--sage);
  white-space: nowrap;
}

/* ============================= RESPONSIVE ============================= */

@media (max-width: 980px) {
  .nav-toggle { display: flex; }

  .nav-panel {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 8px 24px 20px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.25s ease, opacity 0.2s ease;
  }

  .nav-panel.open {
    max-height: 420px;
    opacity: 1;
  }

  .navlinks {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .navlinks a {
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
  }

  .navlinks a.active::after { display: none; }

  .nav-cta {
    margin-top: 14px;
    text-align: center;
  }

  .why .wrap { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .result-grid { grid-template-columns: 1fr; }
  .price-grid, .price-grid-3, .retainer-grid, .svc-phase-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .contact-body .wrap { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .steps { grid-template-columns: 1fr; }
  .press .wrap { flex-direction: column; align-items: flex-start; }
  .pdf-cta { flex-direction: column; align-items: flex-start; }
  .capability-grid { grid-template-columns: 1fr; }
  table.domains { table-layout: fixed; }
  table.domains td.domain { width: 34%; white-space: normal; overflow-wrap: break-word; }
  table.domains td { overflow-wrap: break-word; }
}

/* ============================= PRINT (Services & Pricing PDF) ============================= */

@media print {
  header, footer, .pdf-cta, .nav-toggle { display: none !important; }

  body { background: var(--paper); }

  .pricing { padding: 0; }

  .pagehead { padding: 0 0 32px; background: none; border-bottom: none; }

  .price-card, .svc-card, .terms {
    break-inside: avoid;
    border: 1px solid var(--line);
  }

  table.addons, table.domains { break-inside: avoid; }

  a[href]::after { content: none; }
}
