:root {
  --ink: #18211f;
  --muted: #60706a;
  --line: #dfe8e3;
  --paper: #fbfdfb;
  --soft: #edf6f1;
  --brand: #087b5f;
  --brand-dark: #075944;
  --accent: #f1b84b;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  letter-spacing: 0;
  padding-bottom: 76px;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px clamp(18px, 5vw, 56px);
  background: rgba(251, 253, 251, 0.95);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.brand {
  flex: 0 0 auto;
  font-weight: 800;
  color: var(--brand-dark);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px 16px;
  color: var(--muted);
  font-size: 15px;
}

.nav a:hover,
.footer a:hover {
  color: var(--brand);
}

.hero {
  min-height: 520px;
  display: grid;
  align-items: center;
  background:
    linear-gradient(120deg, rgba(8, 123, 95, 0.92), rgba(24, 33, 31, 0.72)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='900' height='520' viewBox='0 0 900 520'%3E%3Crect width='900' height='520' fill='%23dfe8e3'/%3E%3Cpath d='M80 410c120-130 230-170 370-118 120 44 196 18 314-96v314H80z' fill='%23b8d8ca'/%3E%3Cpath d='M96 102h246v152H96zM408 78h148v116H408zM612 116h190v168H612z' fill='%23fbfdfb' opacity='.88'/%3E%3Cpath d='M132 140h174M132 176h118M438 116h82M438 148h56M650 154h114M650 192h82M650 230h126' stroke='%23087b5f' stroke-width='12' stroke-linecap='round' opacity='.55'/%3E%3C/svg%3E");
  background-size: cover;
  background-position: center;
  color: white;
}

.hero-inner,
.container,
.section {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
}

.hero-inner {
  padding: 70px 0 92px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 34px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-weight: 800;
}

h1,
h2 {
  line-height: 1.22;
  margin: 0;
}

h1 {
  max-width: 840px;
  font-size: 44px;
}

h2 {
  font-size: 25px;
}

.lead {
  max-width: 760px;
  margin: 18px 0 0;
  color: inherit;
  font-size: 19px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.image-slot {
  margin: 0;
}

.image-slot img,
.image-placeholder {
  width: 100%;
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}

.image-slot img {
  object-fit: cover;
  border: 1px solid var(--line);
}

.image-placeholder {
  flex-direction: column;
  gap: 6px;
  padding: 24px;
  border: 1px dashed #b7cbc2;
  background: #f0f7f3;
  color: var(--brand-dark);
  text-align: center;
}

.image-placeholder strong {
  font-size: 19px;
}

.image-placeholder span {
  color: var(--muted);
  font-size: 14px;
}

.hero-image-slot .image-placeholder,
.hero-image-slot img {
  min-height: 280px;
}

.hero .hero-image-slot .image-placeholder {
  border-color: rgba(255, 255, 255, 0.48);
  background: rgba(255, 255, 255, 0.88);
}

.region-image-slot {
  margin-bottom: 18px;
}

.region-image-slot .image-placeholder,
.region-image-slot img {
  min-height: 240px;
}

.subject-image-slot,
.consult-image-slot {
  margin: 26px 0;
}

.subject-image-slot .image-placeholder,
.subject-image-slot img,
.consult-image-slot .image-placeholder,
.consult-image-slot img {
  min-height: 230px;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 800;
}

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

.primary-button:hover {
  background: var(--brand-dark);
}

.secondary-button {
  background: white;
  color: var(--brand-dark);
}

.primary-button.inline {
  margin-top: 8px;
}

.page-hero {
  background: var(--soft);
  border-bottom: 1px solid var(--line);
}

.page-hero .container {
  padding: 58px 0;
}

.page-hero h1 {
  color: var(--brand-dark);
}

.page-hero .lead {
  color: var(--muted);
}

.page-hero .primary-button {
  margin-top: 24px;
}

.section {
  padding: 46px 0;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 20px;
}

.section-head p {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
}

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

.link-grid.compact {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.link-card {
  min-height: 96px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.link-card:hover {
  border-color: var(--brand);
  transform: translateY(-1px);
}

.link-card strong {
  font-size: 18px;
}

.link-card span {
  color: var(--muted);
  font-size: 14px;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  gap: 28px;
  align-items: center;
}

.split p,
.prose p {
  color: var(--muted);
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill-list span {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  font-weight: 700;
}

.prose {
  max-width: 860px;
}

.prose h2 {
  margin-top: 30px;
}

.prose h2:first-child {
  margin-top: 0;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 30px clamp(18px, 5vw, 56px);
  border-top: 1px solid var(--line);
  background: white;
  color: var(--muted);
}

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

.footer p {
  margin: 6px 0 0;
}

.footer-links {
  display: flex;
  gap: 14px;
  align-items: center;
}

.bottom-call {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  padding: 10px 14px;
  background: white;
  border-top: 1px solid var(--line);
  box-shadow: 0 -8px 24px rgba(24, 33, 31, 0.08);
}

.bottom-call a {
  width: min(720px, 100%);
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  border-radius: 8px;
  background: var(--brand);
  color: white;
  font-weight: 900;
}

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

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

  .hero {
    min-height: 470px;
  }

  h1 {
    font-size: 34px;
  }

  .lead {
    font-size: 17px;
  }

  .section-head,
  .footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .link-grid,
  .link-grid.compact,
  .split,
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-image-slot .image-placeholder,
  .hero-image-slot img {
    min-height: 220px;
  }
}

@media (max-width: 420px) {
  .hero-inner,
  .container,
  .section {
    width: min(100% - 28px, 1120px);
  }

  .nav {
    font-size: 14px;
    gap: 5px 12px;
  }

  h1 {
    font-size: 30px;
  }
}
