:root {
  --bg: #f7faf9;
  --surface: #ffffff;
  --primary: #0f766e;
  --primary-dark: #115e59;
  --secondary: #1e3a8a;
  --accent: #f59e0b;
  --soft-mint: #ddf7ef;
  --soft-blue: #e0f2fe;
  --soft-cream: #fff7ed;
  --border: #d7e7e2;
  --text: #1f2937;
  --muted: #64748b;
  --radius: 12px;
  --shadow: 0 16px 38px rgba(15, 118, 110, 0.10);
  --container: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 8% 8%, rgba(221, 247, 239, 0.78), transparent 30%),
    radial-gradient(circle at 88% 12%, rgba(224, 242, 254, 0.82), transparent 28%),
    linear-gradient(rgba(15, 118, 110, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 118, 110, 0.045) 1px, transparent 1px),
    var(--bg);
  background-size: auto, auto, 38px 38px, 38px 38px, auto;
  color: var(--text);
  font-family: "Be Vietnam Pro", "Segoe UI", Arial, sans-serif;
  line-height: 1.65;
  letter-spacing: 0;
}

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

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.container {
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(215, 231, 226, 0.92);
  background: rgba(247, 250, 249, 0.94);
  backdrop-filter: blur(14px);
}

.nav-shell {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), #2dd4bf);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(15, 118, 110, 0.18);
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.2;
}

.brand strong {
  color: var(--text);
}

.brand small {
  color: var(--muted);
  font-size: 0.76rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
}

.site-nav a {
  padding: 9px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.site-nav a:hover,
.site-nav a.is-active {
  background: var(--soft-mint);
  color: var(--primary-dark);
}

.hero {
  padding: 62px 0 78px;
}

.cover-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.78fr);
  gap: 24px;
  align-items: stretch;
}

.cover-grid > * {
  min-width: 0;
}

.clinical-cover,
.care-index,
.profile-card,
.module-card,
.reflection-shell,
.clinical-dialog .dialog-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.clinical-cover {
  position: relative;
  overflow: hidden;
  min-height: 620px;
  padding: 34px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 250, 249, 0.94)),
    var(--surface);
}

.clinical-cover::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 12px;
  background: linear-gradient(180deg, var(--primary), #38bdf8);
}

.clinical-cover::after {
  content: "CARE";
  position: absolute;
  right: 28px;
  bottom: 18px;
  color: rgba(15, 118, 110, 0.07);
  font-size: clamp(4rem, 9vw, 8rem);
  line-height: 1;
  font-weight: 800;
}

.clinical-cover > * {
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--primary);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.clinical-cover h1 {
  max-width: 780px;
  margin: 0;
  color: var(--text);
  font-size: clamp(2.55rem, 5.3vw, 4.9rem);
  line-height: 1.04;
}

.clinical-cover h1 span {
  display: block;
}

.tagline {
  max-width: 720px;
  margin: 20px 0 16px;
  color: var(--secondary);
  font-size: 1.05rem;
  font-weight: 700;
}

.lead {
  max-width: 740px;
  margin: 0;
  color: var(--muted);
}

.identity-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 34px;
}

.identity-grid div {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
}

.identity-grid span {
  display: block;
  margin-bottom: 4px;
  color: var(--primary);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.identity-grid strong {
  display: block;
  color: var(--text);
  overflow-wrap: anywhere;
}

.care-index {
  padding: 26px;
  background:
    linear-gradient(180deg, rgba(221, 247, 239, 0.56), rgba(255, 255, 255, 0.96)),
    #fff;
}

.profile-visual {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(168px, 42%);
  gap: 18px;
  align-items: stretch;
  min-height: 266px;
  margin-bottom: 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 20%, rgba(221, 247, 239, 0.72), transparent 36%),
    linear-gradient(145deg, #fff, rgba(224, 242, 254, 0.54));
  padding: 18px;
}

.profile-visual::before {
  content: "";
  position: absolute;
  right: 42%;
  top: 28px;
  bottom: 28px;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--border), transparent);
}

.visual-note {
  position: relative;
  z-index: 1;
  align-self: end;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 12px 26px rgba(15, 118, 110, 0.08);
}

.visual-note span,
.visual-note small {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.visual-note strong {
  display: block;
  margin: 8px 0 6px;
  color: var(--primary-dark);
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  line-height: 1.2;
}

.photo-frame {
  position: relative;
  z-index: 1;
  align-self: stretch;
  justify-self: end;
  width: min(100%, 210px);
  min-height: 228px;
  border: 8px solid #fff;
  border-radius: 12px;
  overflow: hidden;
  background: var(--soft-blue);
  box-shadow: 0 18px 34px rgba(30, 58, 138, 0.14);
}

.photo-frame img {
  width: 100%;
  height: 100%;
  min-height: 228px;
  object-fit: cover;
  object-position: center 38%;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  margin-bottom: 18px;
}

.stats-row article {
  min-height: 92px;
  padding: 13px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
}

.stats-row strong {
  display: block;
  color: var(--primary-dark);
  font-size: 1.25rem;
  line-height: 1;
}

.stats-row span {
  display: block;
  margin-top: 9px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.index-heading {
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.index-heading h2,
.section-heading h2 {
  margin: 0 0 10px;
  color: var(--text);
  line-height: 1.12;
}

.index-heading h2 {
  font-size: 1.5rem;
}

.index-list {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.index-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
}

.index-item b {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: var(--soft-mint);
  color: var(--primary-dark);
  font-size: 0.78rem;
}

.index-item span {
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 700;
}

.section {
  padding: 78px 0;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 30px;
}

.section-heading h2 {
  font-size: clamp(2rem, 4vw, 3.1rem);
}

.section-heading p {
  margin: 0;
  color: var(--muted);
}

.split-heading {
  max-width: none;
  display: grid;
  grid-template-columns: 0.86fr 1fr;
  gap: 28px;
  align-items: end;
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.profile-card {
  min-height: 285px;
  padding: 20px;
  box-shadow: 0 10px 24px rgba(15, 118, 110, 0.06);
}

.profile-card .label,
.module-type {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 6px 9px;
  border-radius: 999px;
  background: var(--soft-mint);
  color: var(--primary-dark);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.profile-card h3,
.module-card h3,
.reflection-card h3 {
  margin: 0 0 10px;
  color: var(--text);
  font-size: 1.06rem;
  line-height: 1.35;
}

.profile-card p,
.module-card p,
.reflection-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.93rem;
}

.track-section {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(221, 247, 239, 0.32);
}

.module-track {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.module-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 370px;
  padding: 20px;
  box-shadow: 0 10px 24px rgba(15, 118, 110, 0.06);
}

.module-card.is-featured {
  border-color: rgba(15, 118, 110, 0.40);
  background:
    linear-gradient(180deg, rgba(255, 247, 237, 0.76), rgba(255, 255, 255, 0.98) 42%),
    #fff;
}

.module-number {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 14px;
  padding: 7px 11px;
  border-radius: 9px;
  background: var(--secondary);
  color: #fff;
  font-weight: 800;
  font-size: 0.78rem;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 16px;
}

.tag {
  padding: 5px 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  color: var(--primary-dark);
  font-size: 0.75rem;
  font-weight: 800;
}

.module-actions {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 22px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 800;
}

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

.button-primary {
  border-color: transparent;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
}

.button-primary:hover {
  color: #fff;
}

.reflection-shell {
  padding: 30px;
  background:
    linear-gradient(135deg, rgba(221, 247, 239, 0.72), rgba(224, 242, 254, 0.58)),
    #fff;
}

.reflection-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.reflection-card {
  min-height: 210px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
}

.reflection-index {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 14px;
  border-radius: 10px;
  background: var(--soft-mint);
  color: var(--primary-dark);
  font-weight: 800;
}

.site-footer {
  padding: 28px 0;
  border-top: 1px solid var(--border);
  background: #fff;
  color: var(--muted);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-inner p {
  margin: 0;
}

.footer-inner strong {
  color: var(--text);
}

.clinical-dialog {
  width: min(940px, calc(100% - 28px));
  max-height: min(820px, calc(100vh - 28px));
  padding: 0;
  border: 0;
  background: transparent;
}

.clinical-dialog::backdrop {
  background: rgba(31, 41, 55, 0.62);
  backdrop-filter: blur(5px);
}

.dialog-card {
  position: relative;
  padding: 30px;
  color: var(--text);
}

.dialog-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  color: var(--text);
  cursor: pointer;
  font-size: 1.5rem;
  line-height: 1;
}

.dialog-card h2 {
  max-width: 760px;
  margin: 0 0 14px;
  color: var(--text);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  line-height: 1.2;
}

.dialog-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.case-notes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 22px;
}

.case-note {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #f7faf9;
}

.case-note h3 {
  margin: 0 0 8px;
  color: var(--primary-dark);
  font-size: 0.88rem;
  text-transform: uppercase;
}

.case-note p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

@media (max-width: 1040px) {
  .cover-grid,
  .split-heading {
    grid-template-columns: 1fr;
  }

  .clinical-cover {
    min-height: auto;
  }

  .profile-grid,
  .module-track,
  .reflection-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .container {
    width: min(100% - 28px, var(--container));
  }

  .nav-shell {
    align-items: stretch;
    flex-direction: column;
    padding: 12px 0;
  }

  .site-nav {
    width: 100%;
    justify-content: space-between;
  }

  .site-nav a {
    flex: 1;
    padding: 9px 8px;
    text-align: center;
  }

  .hero,
  .section {
    padding: 52px 0;
  }

  .clinical-cover,
  .care-index,
  .reflection-shell,
  .dialog-card {
    padding: 20px;
  }

  .clinical-cover {
    padding-left: 26px;
  }

  .clinical-cover h1 {
    font-size: clamp(1.78rem, 8vw, 2.35rem);
    line-height: 1.14;
  }

  .identity-grid,
  .stats-row,
  .profile-grid,
  .module-track,
  .reflection-grid,
  .case-notes {
    grid-template-columns: 1fr;
  }

  .module-card,
  .profile-card,
  .reflection-card {
    min-height: auto;
  }

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

  .profile-visual {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .profile-visual::before {
    display: none;
  }

  .photo-frame {
    justify-self: stretch;
    width: 100%;
    max-height: 360px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
