:root {
  --ink: #17201c;
  --muted: #52615c;
  --soft: #f7f8f5;
  --paper: #ffffff;
  --line: #dfe5de;
  --teal: #1b6f72;
  --teal-dark: #0e4e52;
  --wine: #7b334b;
  --amber: #d89a2b;
  --green-soft: #eaf4ee;
  --teal-soft: #e5f1f2;
  --wine-soft: #f3e8ed;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

body {
  background: var(--soft);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

.site-nav {
  align-items: center;
  background: rgba(247, 248, 245, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  min-height: 58px;
  padding: 0.65rem clamp(1rem, 3vw, 2rem);
  position: sticky;
  top: 0;
  z-index: 20;
}

.brand-link,
.site-nav nav a,
.site-footer a {
  text-decoration: none;
}

.brand-link {
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.site-nav nav {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: flex-end;
}

.site-nav nav a {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-nav nav a:hover {
  color: var(--teal-dark);
}

.hero {
  align-items: flex-end;
  background-color: #1b2726;
  background-image: linear-gradient(90deg, rgba(13, 25, 24, 0.92), rgba(13, 25, 24, 0.68) 46%, rgba(13, 25, 24, 0.2)), url("assets/clinical-readiness-preview.png");
  background-position: center;
  background-size: cover;
  color: white;
  display: flex;
  min-height: 70svh;
  padding: clamp(4rem, 8vw, 7rem) clamp(1.25rem, 5vw, 4rem) clamp(3rem, 7vw, 5rem);
}

.hero-content {
  max-width: 720px;
}

.eyebrow,
.section-kicker {
  color: var(--teal);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  line-height: 1.3;
  margin-bottom: 0.8rem;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #a8dde0;
}

h1,
h2,
h3 {
  letter-spacing: 0;
  line-height: 1.15;
}

h1 {
  font-size: clamp(2.2rem, 6vw, 5.4rem);
  font-weight: 780;
  max-width: 760px;
}

h2 {
  font-size: clamp(1.35rem, 3vw, 2.35rem);
  font-weight: 740;
}

h3 {
  font-size: 1.08rem;
  font-weight: 740;
}

.hero-copy {
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1rem, 1.8vw, 1.28rem);
  margin-top: 1rem;
  max-width: 640px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.8rem;
}

.button {
  align-items: center;
  border: 1px solid currentColor;
  border-radius: 6px;
  display: inline-flex;
  font-size: 0.86rem;
  font-weight: 750;
  justify-content: center;
  min-height: 44px;
  min-width: 10rem;
  padding: 0.72rem 1rem;
  text-decoration: none;
}

.button.primary {
  background: var(--teal);
  border-color: var(--teal);
  color: white;
}

.button.primary:hover {
  background: var(--teal-dark);
  border-color: var(--teal-dark);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

.button.secondary:hover {
  background: rgba(255, 255, 255, 0.17);
}

.scope-note {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.86rem;
  margin-top: 1rem;
}

section {
  border-bottom: 1px solid var(--line);
  padding: clamp(3rem, 7vw, 5rem) clamp(1.25rem, 5vw, 4rem);
}

.section-grid,
.sample-section,
.contact-section {
  display: grid;
  gap: clamp(1.5rem, 4vw, 4rem);
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  margin: 0 auto;
  max-width: 1180px;
}

.section-grid > p,
.limits-copy,
.sample-copy p,
.contact-section p {
  color: var(--muted);
  font-size: 1.02rem;
}

.intro-section .section-grid > p {
  padding-top: 2.05rem;
}

.section-head {
  margin: 0 auto 2rem;
  max-width: 1180px;
}

.section-head h2 {
  max-width: 760px;
}

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

.service-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  min-height: 360px;
  padding: 1.35rem;
}

.service-card.accent-card {
  background: linear-gradient(180deg, var(--teal-soft), #ffffff 60%);
  border-color: #c8dcde;
}

.service-number {
  color: var(--wine);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.service-card h3 {
  margin-bottom: 0.75rem;
}

.service-card p,
.service-card li {
  color: var(--muted);
  font-size: 0.95rem;
}

.service-card ul {
  border-top: 1px solid var(--line);
  list-style: none;
  margin-top: auto;
  padding-top: 1rem;
}

.service-card li {
  padding-left: 1.1rem;
  position: relative;
}

.service-card li + li {
  margin-top: 0.5rem;
}

.service-card li::before {
  background: var(--amber);
  border-radius: 50%;
  content: "";
  height: 0.42rem;
  left: 0;
  position: absolute;
  top: 0.68rem;
  width: 0.42rem;
}

.sample-section {
  align-items: center;
  background: var(--paper);
}

.sample-copy {
  max-width: 520px;
}

.sample-copy p {
  margin: 1rem 0;
}

.text-link {
  color: var(--teal-dark);
  display: inline-flex;
  font-weight: 760;
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
}

.sample-figure {
  background: #dfe8e6;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.sample-figure img {
  display: block;
  height: auto;
  width: 100%;
}

.process-list {
  counter-reset: item;
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  list-style: none;
  margin: 0 auto;
  max-width: 1180px;
}

.process-list li {
  background: var(--paper);
  border: 1px solid var(--line);
  min-height: 210px;
  padding: 1.2rem;
}

.process-list span {
  color: var(--wine);
  display: block;
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  margin-bottom: 1rem;
}

.process-list strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 0.6rem;
}

.process-list p {
  color: var(--muted);
  font-size: 0.92rem;
}

.audience-section {
  background: #edf2ee;
}

.audience-panel {
  margin: 0 auto;
  max-width: 1180px;
}

.audience-panel h2 {
  max-width: 780px;
}

.audience-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 2rem;
}

.audience-list span {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
  padding: 0.55rem 0.82rem;
}

.limits-copy p + p {
  margin-top: 1rem;
}

.sources-section {
  background: var(--paper);
}

.source-links {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0 auto;
  max-width: 1180px;
}

.source-links a {
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--teal-dark);
  display: flex;
  font-size: 0.9rem;
  font-weight: 750;
  gap: 0.9rem;
  min-height: 92px;
  padding: 1rem;
  text-decoration: none;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.source-links a:hover {
  background: var(--teal-soft);
  border-color: #bcd5d7;
  transform: translateY(-1px);
}

.source-icon {
  align-items: center;
  border-radius: 8px;
  color: var(--teal-dark);
  display: inline-flex;
  flex: 0 0 46px;
  height: 46px;
  justify-content: center;
  width: 46px;
}

.source-icon svg {
  height: 30px;
  width: 30px;
}

.source-icon svg,
.source-icon path,
.source-icon circle,
.source-icon rect {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.6;
}

.source-icon-mii {
  background: var(--teal-soft);
}

.source-icon-fdpg {
  background: var(--green-soft);
}

.source-icon-65c {
  background: var(--wine-soft);
  color: var(--wine);
}

.source-icon-ema {
  background: #eef1f7;
  color: #2c5282;
}

.source-body {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.source-title {
  color: var(--teal-dark);
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.22;
}

.source-note {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1.25;
}

.contact-section {
  align-items: center;
}

.contact-section h2 {
  margin-bottom: 1rem;
}

.contact-button {
  justify-self: end;
}

.site-footer {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  padding: 1.5rem;
}

.site-footer a {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.legal-page {
  background: var(--paper);
}

.legal-top {
  border-bottom: 1px solid var(--line);
  padding: 1rem clamp(1.25rem, 5vw, 4rem);
}

.legal-top a {
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 800;
  text-decoration: none;
}

.legal-shell {
  margin: 0 auto;
  max-width: 860px;
  padding: clamp(2.5rem, 6vw, 4rem) clamp(1.25rem, 5vw, 2rem);
}

.legal-shell h1 {
  color: var(--ink);
  font-size: clamp(2rem, 4vw, 3.2rem);
  margin-bottom: 0.8rem;
}

.legal-lead {
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 2.5rem;
}

.legal-section {
  border-bottom: 1px solid var(--line);
  padding: 1.6rem 0;
}

.legal-section h2 {
  color: var(--teal);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  margin-bottom: 0.8rem;
  text-transform: uppercase;
}

.legal-section p {
  color: var(--muted);
  margin-top: 0.7rem;
}

.legal-section a {
  color: var(--teal-dark);
  font-weight: 700;
}

@media (max-width: 920px) {
  .hero {
    min-height: 68svh;
  }

  .section-grid,
  .sample-section,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .intro-section .section-grid > p {
    padding-top: 0;
  }

  .service-grid,
  .process-list,
  .source-links {
    grid-template-columns: 1fr 1fr;
  }

  .contact-button {
    justify-self: start;
  }
}

@media (max-width: 640px) {
  .site-nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav nav {
    justify-content: flex-start;
  }

  .site-nav nav a {
    font-size: 0.68rem;
  }

  .hero {
    min-height: 66svh;
    padding-top: 4rem;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .service-grid,
  .process-list,
  .source-links {
    grid-template-columns: 1fr;
  }

  .service-card,
  .process-list li {
    min-height: auto;
  }

  .audience-list span {
    border-radius: 6px;
    width: 100%;
  }
}
