:root {
  --paper: #ffffff;
  --stone: #f6f6f2;
  --stone-deep: #efefe9;
  --sage-50: #f3f6f1;
  --sage-100: #e4ebe1;
  --sage-200: #ccd9c8;
  --sage-300: #a9bca4;
  --sage-500: #71866c;
  --sage-700: #52654e;
  --sage-800: #40503d;
  --ink: #303334;
  --ink-soft: #555a5b;
  --ink-muted: #717777;
  --line: #dfe3dd;
  --line-strong: #cbd1ca;
  --night: #222627;
  --night-soft: #2b3031;
  --white: #ffffff;
  --danger: #7c3e3e;
  --max: 1220px;
  --narrow: 820px;
  --radius-sm: 12px;
  --radius: 22px;
  --radius-lg: 34px;
  --shadow-sm: 0 12px 30px rgba(35, 42, 39, .07);
  --shadow: 0 24px 72px rgba(35, 42, 39, .12);
  --font: "Avenir Next", Avenir, "Segoe UI", Inter, system-ui, -apple-system, BlinkMacSystemFont, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.68;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
iframe { border: 0; }
figure { margin: 0; }
a { color: var(--sage-700); text-decoration-thickness: .08em; text-underline-offset: .18em; }
a:hover { color: var(--sage-800); }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
::selection { background: var(--sage-200); color: var(--ink); }

.container { width: min(calc(100% - 44px), var(--max)); margin-inline: auto; }
.narrow { width: min(calc(100% - 44px), var(--narrow)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 9999; top: 12px; left: 12px; transform: translateY(-180%); padding: .75rem 1rem; border-radius: 10px; background: var(--night); color: #fff; }
.skip-link:focus { transform: none; }

h1, h2, h3, h4, p { margin-top: 0; }
h1, h2, h3, h4 {
  color: var(--ink);
  font-weight: 620;
  line-height: 1.08;
  letter-spacing: -.035em;
}
h1 { font-size: clamp(3.05rem, 7.1vw, 6.6rem); }
h2 { font-size: clamp(2.15rem, 4.6vw, 4.2rem); }
h3 { font-size: clamp(1.35rem, 2.2vw, 1.9rem); }
p:last-child { margin-bottom: 0; }
.lead { max-width: 68ch; color: var(--ink-soft); font-size: clamp(1.08rem, 1.7vw, 1.3rem); line-height: 1.64; }
.small { color: var(--ink-muted); font-size: .89rem; line-height: 1.55; }
.accent { display: block; color: var(--sage-700); }
.eyebrow {
  display: flex;
  align-items: center;
  gap: .68rem;
  margin-bottom: 1.2rem;
  color: var(--sage-700);
  font-size: .72rem;
  font-weight: 780;
  letter-spacing: .15em;
  line-height: 1.3;
  text-transform: uppercase;
}
.eyebrow::before { width: 32px; height: 2px; background: var(--sage-300); content: ""; }

/* Header */
.site-header {
  position: sticky;
  z-index: 1000;
  top: 0;
  border-bottom: 1px solid rgba(223, 227, 221, .9);
  background: rgba(255, 255, 255, .91);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.header-inner { display: flex; min-height: 86px; align-items: center; justify-content: space-between; gap: 32px; }
.brand { display: inline-flex; width: clamp(240px, 25vw, 330px); flex: 0 0 auto; align-items: center; }
.brand img { width: 100%; height: auto; }
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a {
  padding: .7rem .86rem;
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: .89rem;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { background: var(--sage-50); color: var(--sage-800); }
.site-nav .nav-cta { margin-left: .45rem; padding-inline: 1.18rem; background: var(--sage-700); color: #fff; }
.site-nav .nav-cta:hover { background: var(--sage-800); color: #fff; }
.menu-toggle { display: none; width: 46px; height: 46px; padding: 11px; border: 1px solid var(--line); border-radius: 50%; background: #fff; }
.menu-toggle span { display: block; width: 100%; height: 2px; margin: 4px 0; border-radius: 2px; background: var(--ink); }

/* Buttons */
.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: .48rem;
  padding: .78rem 1.28rem;
  border: 1px solid var(--sage-700);
  border-radius: 999px;
  background: var(--sage-700);
  color: #fff;
  font-size: .9rem;
  font-weight: 720;
  line-height: 1.2;
  text-decoration: none;
  transition: transform .2s ease, background .2s ease, border-color .2s ease, color .2s ease;
}
.button:hover { transform: translateY(-2px); border-color: var(--sage-800); background: var(--sage-800); color: #fff; }
.button.secondary { border-color: var(--line-strong); background: transparent; color: var(--ink); }
.button.secondary:hover { border-color: var(--sage-500); background: var(--sage-50); color: var(--sage-800); }
.button.light { border-color: #fff; background: #fff; color: var(--night); }
.button.light:hover { border-color: var(--sage-100); background: var(--sage-100); color: var(--night); }
.button.text { min-height: auto; padding: 0; border: 0; border-radius: 0; background: none; color: var(--sage-700); }
.button.text:hover { transform: none; background: none; color: var(--sage-800); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 2rem; }

/* Home hero */
.home-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(52px, 8vw, 104px) 0 34px;
  background:
    radial-gradient(circle at 6% 18%, rgba(204, 217, 200, .46), transparent 23rem),
    radial-gradient(circle at 94% 6%, rgba(239, 239, 233, .82), transparent 29rem),
    linear-gradient(180deg, #fff 0%, var(--stone) 100%);
}
.home-hero::after {
  position: absolute;
  right: -7vw;
  bottom: -13vw;
  width: min(48vw, 660px);
  height: min(48vw, 660px);
  background: url('/assets/images/medcentre-mark-primary.png') center/contain no-repeat;
  content: "";
  opacity: .025;
  pointer-events: none;
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, .86fr) minmax(480px, 1.14fr); align-items: center; gap: clamp(42px, 7vw, 92px); }
.hero-copy, .hero-media, .media-copy, .media-frame, .definition-grid > *, .location-grid > *, .footer-grid > * { min-width: 0; }
.hero-copy h1 { max-width: 760px; margin-bottom: 1.55rem; }
.hero-copy .lead { max-width: 58ch; }
.hero-meta { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 2.15rem; }
.hero-meta span { padding: .55rem .8rem; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.72); color: var(--ink-soft); font-size: .76rem; font-weight: 680; }
.hero-media { position: relative; }
.hero-image-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(82, 101, 78, .15);
  border-radius: var(--radius-lg);
  background: #f2f1eb;
  box-shadow: var(--shadow);
}
.hero-image-frame img { width: 100%; aspect-ratio: 16 / 10.2; object-fit: cover; }
.hero-image-frame::after { position: absolute; inset: 0; border: 1px solid rgba(255,255,255,.5); border-radius: inherit; content: ""; pointer-events: none; }
.hero-figure-caption { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 1rem 1.25rem; border-top: 1px solid var(--line); background: rgba(255,255,255,.94); color: var(--ink-muted); font-size: .78rem; }
.hero-figure-caption strong { color: var(--ink); font-weight: 690; }
.hero-seal {
  position: absolute;
  right: -22px;
  bottom: 48px;
  width: 118px;
  aspect-ratio: 1;
  padding: 19px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255,255,255,.94);
  box-shadow: var(--shadow-sm);
}
.hero-seal img { width: 100%; height: 100%; object-fit: contain; }

.identity-ribbon { padding: 0 0 64px; background: var(--stone); }
.identity-panel { position: relative; z-index: 2; display: grid; grid-template-columns: 1.2fr repeat(3, 1fr); margin-top: -1px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); }
.identity-intro, .identity-point { padding: 1.5rem 1.55rem; }
.identity-intro { background: var(--night); color: #fff; }
.identity-intro strong { display: block; margin-bottom: .3rem; font-size: 1rem; }
.identity-intro span { color: #bac3c1; font-size: .82rem; }
.identity-point { border-left: 1px solid var(--line); }
.identity-point b { display: block; color: var(--sage-700); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; }
.identity-point span { display: block; margin-top: .32rem; color: var(--ink-soft); font-size: .88rem; line-height: 1.45; }

/* Sections and general layout */
.section { padding: clamp(72px, 9vw, 124px) 0; }
.section.compact { padding: clamp(50px, 6vw, 78px) 0; }
.section.alt { background: var(--stone); }
.section.sage { background: var(--sage-50); }
.section.dark { background: var(--night); color: #fff; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 36px; margin-bottom: clamp(34px, 5vw, 58px); }
.section-head h2 { max-width: 850px; margin-bottom: 1rem; }
.section-head .lead { margin-bottom: 0; }
.section-head > .button { flex: 0 0 auto; }
.grid-2, .grid-3, .grid-4 { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card {
  position: relative;
  overflow: hidden;
  padding: clamp(26px, 3.3vw, 40px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.card.flat { box-shadow: none; }
.card h3 { margin-bottom: .85rem; }
.card p { color: var(--ink-soft); }
.card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.45rem; }
.card-icon { display: grid; width: 54px; height: 54px; place-items: center; border-radius: 18px; background: var(--sage-100); color: var(--sage-700); }
.card-icon svg { width: 27px; height: 27px; }
.number { margin-bottom: 1rem; color: var(--sage-500); font-size: .72rem; font-weight: 800; letter-spacing: .14em; }
.number-card { min-height: 245px; }
.number-card::after { position: absolute; right: -28px; bottom: -36px; width: 112px; height: 112px; border: 24px solid var(--sage-100); border-radius: 50%; content: ""; opacity: .62; }

/* Residents */
.residents-grid, .ecosystem-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px; }
.resident-card, .provider-card { grid-column: span 4; min-height: 300px; display: flex; flex-direction: column; }
.resident-card:nth-child(1), .resident-card:nth-child(2), .provider-card.featured { grid-column: span 6; }
.resident-card .provider-actions, .provider-card .provider-actions { margin-top: auto; padding-top: 1.5rem; }
.provider-type { margin-bottom: 1.3rem; }
.provider-mark { display: flex; align-items: center; gap: 14px; margin-bottom: 1.2rem; }
.provider-mark strong { display: block; font-size: 1.16rem; }
.provider-mark small { display: block; margin-top: .18rem; color: var(--ink-muted); font-size: .77rem; }
.provider-monogram { display: grid; width: 58px; height: 58px; flex: 0 0 auto; place-items: center; border: 1px solid var(--sage-200); border-radius: 18px; background: var(--sage-50); color: var(--sage-700); font-size: .92rem; font-weight: 780; letter-spacing: -.02em; }
.tag { display: inline-flex; align-items: center; padding: .38rem .62rem; border-radius: 999px; background: var(--sage-100); color: var(--sage-800); font-size: .67rem; font-weight: 780; letter-spacing: .08em; line-height: 1.2; text-transform: uppercase; }
.tag.dark { background: #e9ebea; color: #3e4444; }
.tag.copper { background: #efe7dc; color: #735c42; }
.independent { color: var(--ink-muted); font-size: .74rem; font-weight: 650; }

/* Media and architectural identity */
.media-split { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr); align-items: center; gap: clamp(38px, 7vw, 88px); }
.media-split.reverse { grid-template-columns: minmax(0, .98fr) minmax(0, 1.02fr); }
.media-copy h2 { margin-bottom: 1.2rem; }
.media-copy .lead { margin-bottom: 1.8rem; }
.media-frame { position: relative; overflow: hidden; border-radius: var(--radius-lg); background: var(--stone-deep); box-shadow: var(--shadow); }
.media-frame img { width: 100%; aspect-ratio: 16/10.5; object-fit: cover; }
.media-frame figcaption { padding: 1rem 1.25rem; border-top: 1px solid var(--line); background: #fff; color: var(--ink-muted); font-size: .79rem; }
.media-badge { position: absolute; top: 20px; left: 20px; padding: .55rem .75rem; border: 1px solid rgba(255,255,255,.45); border-radius: 999px; background: rgba(34,38,39,.78); color: #fff; font-size: .68rem; font-weight: 750; letter-spacing: .09em; text-transform: uppercase; backdrop-filter: blur(8px); }
.tick-list { list-style: none; padding: 0; margin: 1.8rem 0 0; }
.tick-list li { position: relative; padding: .62rem 0 .62rem 2rem; border-bottom: 1px solid var(--line); color: var(--ink-soft); }
.tick-list li::before { position: absolute; top: .8rem; left: 0; width: 1.1rem; height: 1.1rem; border-radius: 50%; background: var(--sage-700); color: #fff; content: "✓"; font-size: .68rem; font-weight: 900; line-height: 1.1rem; text-align: center; }
.architecture-grid { display: grid; grid-template-columns: 1.25fr .75fr .75fr; gap: 18px; }
.architecture-card { position: relative; overflow: hidden; min-height: 280px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.architecture-card:first-child { grid-row: span 2; min-height: 580px; }
.architecture-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.architecture-card:hover img { transform: scale(1.025); }
.architecture-card figcaption { position: absolute; right: 14px; bottom: 14px; left: 14px; padding: .72rem .85rem; border: 1px solid rgba(255,255,255,.45); border-radius: 14px; background: rgba(255,255,255,.89); color: var(--ink-soft); font-size: .74rem; backdrop-filter: blur(8px); }

/* Entity definition */
.split-panel { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow-sm); }
.split-panel > div { padding: clamp(34px, 5vw, 64px); }
.split-panel > div:first-child { background: var(--sage-50); }
.split-panel > div:last-child { background: var(--night); color: #fff; }
.split-panel > div:last-child h3, .split-panel > div:last-child .eyebrow { color: #fff; }
.split-panel > div:last-child p, .split-panel > div:last-child .tick-list li { color: #c1c9c7; }
.split-panel > div:last-child .tick-list li { border-color: rgba(255,255,255,.12); }
.split-panel > div:last-child .button.secondary { border-color: rgba(255,255,255,.34); color: #fff; }
.split-panel > div:last-child .button.secondary:hover { background: rgba(255,255,255,.08); }
.definition-grid { display: grid; grid-template-columns: minmax(260px, .72fr) minmax(0, 1.28fr); gap: clamp(40px, 8vw, 100px); }
.sticky-heading { position: sticky; top: 132px; align-self: start; }
.sticky-heading h2 { font-size: clamp(2.25rem, 4vw, 3.7rem); }
.prose { width: min(100%, 820px); color: var(--ink-soft); }
.prose > * + * { margin-top: 1.25em; }
.prose h2 { margin-top: 1.55em; color: var(--ink); font-size: clamp(1.7rem, 3vw, 2.5rem); }
.prose h3 { color: var(--ink); }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin: .55rem 0; }
.prose blockquote { margin: 2.2rem 0; padding: 1.6rem 1.8rem; border-left: 4px solid var(--sage-500); border-radius: 0 16px 16px 0; background: var(--sage-50); color: var(--ink); font-size: 1.12rem; }
.callout { margin: 2.2rem 0; padding: 1.7rem 1.8rem; border: 1px solid var(--sage-200); border-radius: 18px; background: var(--sage-50); }
.notice { margin: 2rem 0; padding: 1.3rem 1.45rem; border-left: 4px solid var(--danger); border-radius: 0 14px 14px 0; background: #faf2f2; color: #5e3636; }
.quote-panel { padding: clamp(38px, 7vw, 80px); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--sage-50); text-align: center; }
.quote-panel blockquote { max-width: 900px; margin: 0 auto 1.35rem; color: var(--ink); font-size: clamp(2rem, 4vw, 4rem); font-weight: 560; line-height: 1.15; letter-spacing: -.04em; }
.quote-panel cite { color: var(--ink-muted); font-size: .79rem; font-style: normal; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }

/* Page heroes */
.page-hero, .article-header {
  position: relative;
  overflow: hidden;
  padding: clamp(64px, 9vw, 118px) 0 clamp(62px, 8vw, 104px);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 87% 27%, rgba(204,217,200,.47), transparent 25rem),
    linear-gradient(135deg, #fff 0%, var(--stone) 100%);
}
.page-hero::after, .article-header::after { position: absolute; right: -70px; bottom: -150px; width: 430px; height: 430px; background: url('/assets/images/medcentre-mark-primary.png') center/contain no-repeat; content: ""; opacity: .035; }
.page-hero .container, .page-hero .narrow, .article-header .container { position: relative; z-index: 1; }
.page-hero h1, .article-header h1 { max-width: 1050px; margin-bottom: 1.5rem; font-size: clamp(3rem, 6.6vw, 6rem); }
.page-hero .lead { max-width: 72ch; }
.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: .52rem; margin-bottom: 2.5rem; color: var(--ink-muted); font-size: .76rem; }
.breadcrumbs a { color: inherit; text-decoration: none; }
.breadcrumbs a:hover { color: var(--sage-700); }
.page-media-strip { margin-top: clamp(-54px, -4vw, -32px); padding-bottom: clamp(48px, 7vw, 80px); background: var(--stone); }
.page-media-strip .media-frame { width: min(100%, 1100px); margin-inline: auto; }

/* Directory */
.directory-intro { display: flex; align-items: flex-start; gap: 18px; margin-bottom: 28px; padding: 1.3rem 1.45rem; border: 1px solid var(--sage-200); border-radius: 18px; background: var(--sage-50); color: var(--ink-soft); }
.directory-list { display: grid; gap: 18px; }
.directory-card { display: grid; grid-template-columns: 210px minmax(0, 1fr) 210px; align-items: center; gap: 34px; padding: clamp(26px, 3.8vw, 44px); border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); }
.directory-id { align-self: stretch; padding-right: 28px; border-right: 1px solid var(--line); }
.directory-copy h2 { margin-bottom: .8rem; font-size: clamp(1.65rem, 2.7vw, 2.35rem); }
.directory-copy p { color: var(--ink-soft); }
.directory-action { text-align: right; }
.directory-action .button { width: 100%; }
.directory-action small { display: block; margin-top: .7rem; color: var(--ink-muted); font-size: .72rem; }

/* Location */
.location-grid { display: grid; grid-template-columns: minmax(330px, .72fr) minmax(0, 1.28fr); overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow); }
.location-panel { padding: clamp(34px, 5vw, 64px); background: var(--night); color: #fff; }
.location-panel h2, .location-panel .eyebrow { color: #fff; }
.location-panel p { color: #bac4c2; }
.location-panel a { color: #eef4ec; }
.contact-list { list-style: none; padding: 0; margin: 2rem 0 0; }
.contact-list li { padding: .88rem 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.contact-list span { display: block; margin-bottom: .2rem; color: #99aaa7; font-size: .68rem; font-weight: 760; letter-spacing: .1em; text-transform: uppercase; }
.contact-list strong, .contact-list a { display: inline-block; color: #fff; font-weight: 620; text-decoration: none; }
.map-card { min-height: 530px; background: var(--stone); }
.map-card iframe { width: 100%; height: 100%; min-height: 530px; }

/* Forms */
.form-wrap { padding: clamp(30px, 4vw, 54px); background: #fff; }
.form-alert { margin-bottom: 1.7rem; padding: 1rem 1.1rem; border: 1px solid #e6cece; border-radius: 14px; background: #fcf5f5; color: #694343; font-size: .85rem; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.field { display: grid; gap: .5rem; }
.field.full { grid-column: 1 / -1; }
.field label { color: var(--ink); font-size: .78rem; font-weight: 700; }
.field input, .field select, .field textarea { width: 100%; border: 1px solid var(--line-strong); border-radius: 13px; background: #fff; color: var(--ink); outline: none; padding: .83rem .9rem; transition: border .18s ease, box-shadow .18s ease; }
.field textarea { min-height: 148px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--sage-500); box-shadow: 0 0 0 4px rgba(113,134,108,.14); }
.check { display: flex !important; align-items: flex-start; gap: .7rem; color: var(--ink-soft) !important; font-weight: 520 !important; line-height: 1.5; }
.check input { width: 18px; height: 18px; margin-top: .17rem; accent-color: var(--sage-700); }
.honeypot { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }

/* FAQs and insight cards */
.faq { display: grid; gap: 12px; }
.faq details { border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.faq summary { position: relative; padding: 1.25rem 3.2rem 1.25rem 1.3rem; color: var(--ink); font-weight: 680; list-style: none; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { position: absolute; top: 50%; right: 1.25rem; content: "+"; color: var(--sage-700); font-size: 1.45rem; transform: translateY(-50%); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 1.3rem 1.35rem; color: var(--ink-soft); }
.article-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.article-card { display: flex; min-height: 360px; flex-direction: column; padding: clamp(30px, 4vw, 48px); border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); }
.article-card h2 { margin: .8rem 0 1rem; font-size: clamp(1.8rem, 3.2vw, 2.7rem); }
.article-card p { color: var(--ink-soft); }
.article-card .button { align-self: flex-start; margin-top: auto; }
.article-meta { color: var(--sage-700); font-size: .69rem; font-weight: 760; letter-spacing: .1em; text-transform: uppercase; }
.article-meta-row { display: flex; flex-wrap: wrap; gap: .65rem 1.25rem; color: var(--ink-muted); font-size: .78rem; }
.article-body { padding: clamp(70px, 9vw, 120px) 0; }
.article-body .prose { margin-inline: auto; }

/* CTA and footer */
.cta-band { position: relative; display: flex; overflow: hidden; align-items: center; justify-content: space-between; gap: 36px; padding: clamp(38px, 6vw, 70px); border-radius: var(--radius-lg); background: var(--night); color: #fff; }
.cta-band::after { position: absolute; right: -80px; bottom: -125px; width: 360px; height: 360px; background: url('/assets/images/medcentre-mark-light.png') center/contain no-repeat; content: ""; opacity: .055; }
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { max-width: 760px; margin-bottom: .85rem; color: #fff; font-size: clamp(2rem, 4.3vw, 3.8rem); }
.cta-band p { max-width: 65ch; color: #bbc5c3; }
.cta-actions { display: flex; flex: 0 0 auto; flex-wrap: wrap; gap: 10px; }
.site-footer { padding: 78px 0 28px; background: var(--night); color: #e7ecea; }
.footer-grid { display: grid; grid-template-columns: 1.35fr .7fr .9fr; gap: 56px; }
.footer-brand a { display: inline-flex; max-width: 100%; }
.footer-brand img { width: 100%; max-width: 360px; height: auto; }
.footer-brand p { max-width: 56ch; margin-top: 1.45rem; color: #adb8b5; font-size: .94rem; }
.footer-heading { margin-bottom: 1rem; color: #fff; font-size: .69rem; font-weight: 790; letter-spacing: .14em; text-transform: uppercase; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .62rem; }
.footer-links a { color: #c5cecc; font-size: .88rem; text-decoration: none; }
.footer-links a:hover { color: #fff; }
.footer-disclaimer { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12); color: #9eaaa7; font-size: .8rem; }
.footer-bottom { display: flex; justify-content: space-between; gap: 24px; margin-top: 24px; color: #83908e; font-size: .76rem; }
.footer-bottom a { color: inherit; }

/* Status pages */
.status-page { display: grid; min-height: 72vh; place-items: center; padding: 70px 0; background: var(--stone); }
.status-card { max-width: 780px; padding: clamp(40px, 7vw, 82px); border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow); text-align: center; }
.status-code { color: var(--sage-700); font-size: .72rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.status-card h1 { margin: 1rem 0 1.4rem; font-size: clamp(2.6rem, 5.5vw, 5rem); }
.status-card .hero-actions { justify-content: center; }
.back-link { display: inline-flex; margin-bottom: 1.7rem; color: var(--ink-muted); text-decoration: none; font-weight: 650; }

@media (max-width: 1080px) {
  .menu-toggle { display: block; }
  .site-nav { position: fixed; top: 96px; right: 22px; left: 22px; display: none; flex-direction: column; align-items: stretch; padding: 12px; border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: var(--shadow); }
  .site-nav[data-open="true"] { display: flex; }
  .site-nav a { width: 100%; padding: .88rem 1rem; }
  .site-nav .nav-cta { margin-left: 0; text-align: center; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { max-width: 860px; }
  .hero-media { width: min(100%, 900px); }
  .identity-panel { grid-template-columns: repeat(3, 1fr); }
  .identity-intro { grid-column: 1 / -1; }
  .identity-point:first-of-type { border-left: 0; }
  .resident-card, .provider-card { grid-column: span 6; }
  .resident-card:nth-child(1), .resident-card:nth-child(2), .provider-card.featured { grid-column: span 6; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .directory-card { grid-template-columns: 165px 1fr; }
  .directory-action { grid-column: 2; text-align: left; }
  .directory-action .button { width: auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 820px) {
  body { font-size: 16px; }
  .container, .narrow { width: min(calc(100% - 30px), var(--max)); }
  .header-inner { min-height: 76px; }
  .brand { width: 230px; }
  .site-nav { top: 82px; right: 15px; left: 15px; }
  .home-hero { padding-top: 58px; }
  .hero-grid { gap: 38px; }
  .hero-seal { right: 14px; bottom: 52px; width: 92px; padding: 15px; }
  .identity-ribbon { padding-bottom: 48px; }
  .identity-panel { grid-template-columns: 1fr; }
  .identity-intro { grid-column: auto; }
  .identity-point { border-top: 1px solid var(--line); border-left: 0; }
  .section-head { display: block; }
  .section-head > .button { margin-top: 1.4rem; }
  .grid-2, .grid-3, .grid-4, .article-list, .form-grid { grid-template-columns: 1fr; }
  .residents-grid, .ecosystem-grid { grid-template-columns: 1fr; }
  .resident-card, .resident-card:nth-child(1), .resident-card:nth-child(2), .provider-card, .provider-card.featured { grid-column: auto; }
  .media-split, .media-split.reverse, .definition-grid { grid-template-columns: 1fr; }
  .media-split.reverse .media-copy { order: 1; }
  .media-split.reverse .media-frame { order: 2; }
  .sticky-heading { position: static; }
  .architecture-grid { grid-template-columns: 1fr 1fr; }
  .architecture-card:first-child { grid-column: 1 / -1; grid-row: auto; min-height: 430px; }
  .split-panel { grid-template-columns: 1fr; }
  .directory-card { grid-template-columns: 1fr; gap: 20px; }
  .directory-id { padding: 0 0 20px; border-right: 0; border-bottom: 1px solid var(--line); }
  .directory-action { grid-column: auto; }
  .field.full { grid-column: auto; }
  .location-grid { grid-template-columns: 1fr; }
  .map-card, .map-card iframe { min-height: 390px; }
  .cta-band { display: block; }
  .cta-actions { margin-top: 1.5rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
  .footer-bottom { display: block; }
  .footer-bottom > * + * { display: block; margin-top: .55rem; }
}

@media (max-width: 560px) {
  h1 { font-size: clamp(2.7rem, 15vw, 4.3rem); }
  .brand { width: 206px; }
  .hero-image-frame { border-radius: 24px; }
  .hero-figure-caption { display: block; }
  .hero-figure-caption span { display: block; margin-top: .2rem; }
  .hero-seal { display: none; }
  .architecture-grid { grid-template-columns: 1fr; }
  .architecture-card, .architecture-card:first-child { min-height: 320px; }
  .page-hero h1, .article-header h1 { font-size: clamp(2.65rem, 14vw, 4.5rem); }
  .page-hero, .article-header { padding-top: 52px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .001ms !important; animation-duration: .001ms !important; animation-iteration-count: 1 !important; }
}

@media print {
  .site-header, .site-footer, .hero-actions, .cta-band, .menu-toggle, .hero-seal { display: none !important; }
  body { background: #fff; color: #000; }
  .section, .page-hero, .article-header, .article-body { padding-block: 24px; }
  .card, .directory-card, .map-card, .media-frame { box-shadow: none; break-inside: avoid; }
}


/* Warm facility photography */
.photo-gallery { display:grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.photo-card { overflow:hidden; border:1px solid var(--line); border-radius: var(--radius); background:#fff; box-shadow: var(--shadow-sm); }
.photo-card img { width:100%; aspect-ratio: 4 / 5; object-fit: cover; }
.photo-card .photo-copy { padding: 1rem 1.05rem 1.15rem; }
.photo-card h3 { margin: 0 0 .45rem; font-size: 1.06rem; }
.photo-card p { color: var(--ink-soft); font-size: .9rem; line-height: 1.55; }
.feature-gallery { display:grid; grid-template-columns: 1.2fr .8fr; gap: 22px; }
.feature-photo { overflow:hidden; border:1px solid var(--line); border-radius: var(--radius-lg); background:#fff; box-shadow: var(--shadow); }
.feature-photo img { width:100%; height:100%; min-height: 340px; object-fit: cover; }
.gallery-stack { display:grid; gap: 22px; }
.gallery-stack .feature-photo img { min-height: 159px; }
.info-grid { display:grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.info-grid .card { min-height: 100%; }
.address-card { padding: clamp(28px, 4vw, 42px); border:1px solid var(--line); border-radius: var(--radius-lg); background: linear-gradient(145deg, var(--sage-700) 0%, var(--sage-800) 100%); color:#fff; box-shadow: var(--shadow); }
.address-card h3, .address-card .eyebrow { color:#fff; }
.address-card p, .address-card li, .address-card a { color:#eef4ec; }
.address-card ul { padding-left: 1.15rem; }
@media (max-width: 1080px) { .photo-gallery, .info-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 820px) { .feature-gallery, .photo-gallery, .info-grid { grid-template-columns: 1fr; } }


/* Fresha proof — attributed to resident practice, not the facility */
.review-proof { background: linear-gradient(180deg, var(--sage-50) 0%, #fff 100%); }
.review-proof-grid {
  display: grid;
  grid-template-columns: .9fr .9fr 1.2fr;
  gap: 20px;
}
.review-score-card,
.review-quote-card {
  padding: clamp(26px, 3.2vw, 40px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.review-kicker {
  display: block;
  margin-bottom: .75rem;
  color: var(--sage-700);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.review-score {
  margin-bottom: .1rem;
  color: var(--ink);
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 650;
  line-height: .95;
  letter-spacing: -.055em;
}
.review-stars {
  margin: .45rem 0 .9rem;
  color: var(--sage-700);
  font-size: 1.02rem;
  letter-spacing: .14em;
}
.review-score-card p,
.review-quote-card p { color: var(--ink-soft); }
.review-quote-card blockquote {
  margin: 0 0 1.25rem;
  color: var(--ink);
  font-size: clamp(1.25rem, 2.2vw, 1.75rem);
  font-weight: 560;
  line-height: 1.35;
  letter-spacing: -.02em;
}
.review-quote-card blockquote + blockquote {
  padding-top: 1.15rem;
  border-top: 1px solid var(--line);
}
.review-attrib {
  display: block;
  margin-top: .35rem;
  color: var(--ink-muted);
  font-size: .73rem;
  font-style: normal;
  font-weight: 650;
}
.review-note {
  margin: 1rem 0 0;
  color: var(--ink-muted);
  font-size: .78rem;
}
@media (max-width: 920px) {
  .review-proof-grid { grid-template-columns: 1fr 1fr; }
  .review-quote-card { grid-column: 1 / -1; }
}
@media (max-width: 620px) {
  .review-proof-grid { grid-template-columns: 1fr; }
  .review-quote-card { grid-column: auto; }
}
