/* Morgan Medical Consulting */

:root {
  --bg: #faf8f4;
  --surface: #ffffff;
  --surface-alt: #f2eee6;
  --ink: #16202e;
  --ink-soft: #4a5566;
  --line: #e3ddd1;
  --navy: #14243b;
  --navy-soft: #1f3657;
  --gold: #d3bc5f;
  --gold-text: #8a6219;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(20, 36, 59, 0.06), 0 8px 24px rgba(20, 36, 59, 0.06);
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --container: 1140px;
  --gutter: clamp(16px, 4vw, 32px);
  /* Header bar, and the logo that hangs below it at the top of the page */
  --bar-h: 84px;
  --logo-h: clamp(120px, 13vw, 156px);
  --logo-top: 12px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--navy-soft);
}

h1, h2, h3, h4 {
  margin: 0 0 0.5em;
  line-height: 1.2;
  color: var(--navy);
}

h1, h2 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.2rem; font-weight: 600; }
h4 { font-size: 1rem; font-weight: 600; }

p { margin: 0 0 1em; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  background: var(--navy);
  color: #fff;
  padding: 8px 14px;
  border-radius: 8px;
  z-index: 100;
}

.skip-link:focus { top: 12px; }

:focus-visible {
  outline: 3px solid var(--gold-text);
  outline-offset: 3px;
}

.eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-text);
  margin-bottom: 0.75em;
}

.lede {
  font-size: 1.15rem;
  color: var(--ink-soft);
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  border: 1px solid var(--navy);
  transition: background 0.15s ease, color 0.15s ease;
}

.btn:hover { background: var(--navy-soft); }

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

.btn-ghost:hover {
  background: var(--surface);
  border-color: var(--navy);
}

.btn-small {
  padding: 8px 16px;
  font-size: 0.92rem;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 248, 244, 0.92);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--bar-h);
}

/* The logo box keeps its space in the bar; the image inside overflows below it */
.logo {
  position: relative;
  flex: none;
  align-self: stretch;
  width: calc(var(--logo-h) * 1.51);
  transition: width 0.25s ease;
}

.logo img {
  position: absolute;
  left: 0;
  top: var(--logo-top);
  height: var(--logo-h);
  width: auto;
  filter: drop-shadow(0 6px 14px rgba(20, 36, 59, 0.28));
  transition: height 0.25s ease, top 0.25s ease;
}

.site-header.scrolled,
.site-header.menu-open {
  --logo-h: 64px;
  --logo-top: 10px;
}

@media (prefers-reduced-motion: reduce) {
  .logo,
  .logo img { transition: none; }
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-nav a:not(.btn) {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.96rem;
}

.site-nav a:not(.btn):hover { color: var(--gold-text); }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  cursor: pointer;
  position: relative;
}

.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  position: absolute;
  left: 12px;
  width: 18px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle-bar { top: 21px; }
.nav-toggle-bar::before { content: ""; left: 0; top: -6px; }
.nav-toggle-bar::after { content: ""; left: 0; top: 6px; }

.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-6px) rotate(-45deg); }

/* Hero */

.hero {
  /* Clear the part of the logo that hangs below the header */
  padding: calc(var(--logo-top) + var(--logo-h) - var(--bar-h) + clamp(32px, 5vw, 56px)) 0 clamp(40px, 6vw, 72px);
  background:
    radial-gradient(1000px 420px at 85% -10%, rgba(184, 137, 43, 0.12), transparent 60%),
    var(--bg);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
}

.hero-copy .lede { max-width: 36em; }

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

.hero-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 6px);
  box-shadow: var(--shadow);
  overflow: hidden;
  max-width: 380px;
  justify-self: end;
}

.hero-card img {
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  object-position: center 25%;
}

.hero-card-body { padding: 20px 22px 22px; }

.hero-card-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--navy);
  margin: 0;
}

.hero-card-role {
  color: var(--ink-soft);
  font-size: 0.92rem;
  margin: 2px 0 14px;
}

.hero-card-facts {
  list-style: none;
  margin: 0;
  padding: 14px 0 0;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 8px;
  font-size: 0.92rem;
}

.hero-card-facts li {
  display: flex;
  gap: 10px;
  align-items: baseline;
}

.hero-card-facts li::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  transform: translateY(-2px);
}

/* Sections */

.section { padding: clamp(56px, 9vw, 104px) 0; }

.section-head {
  max-width: 720px;
  margin-bottom: 44px;
}

.section-head p:not(.eyebrow) {
  color: var(--ink-soft);
  font-size: 1.08rem;
}

.perspectives {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.card-grid {
  display: grid;
  gap: 20px;
}

.card-grid.three { grid-template-columns: repeat(3, 1fr); }
.card-grid.four { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}

.card p {
  color: var(--ink-soft);
  margin: 0;
  font-size: 0.98rem;
}

.card-plain { background: var(--surface); }

.card-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--navy);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}

.card-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Services */

.service-list {
  display: grid;
  gap: 16px;
}

.service {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 28px;
  box-shadow: 0 1px 2px rgba(20, 36, 59, 0.04);
}

.service-summary {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 2fr;
  gap: 8px 32px;
  align-items: baseline;
}

.service-summary h3 { margin: 0; }

.service-summary p {
  margin: 0;
  color: var(--ink-soft);
}

.service details { margin-top: 16px; }

.service summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--gold-text);
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.service summary::-webkit-details-marker { display: none; }

.service summary::after {
  content: "+";
  font-size: 1.1rem;
  line-height: 1;
}

.service details[open] summary::after { content: "\2212"; }

.detail-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 18px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.detail-cols h4 { margin-bottom: 8px; }

.detail-cols ul {
  margin: 0;
  padding-left: 1.1em;
  color: var(--ink-soft);
  font-size: 0.94rem;
}

.detail-cols li + li { margin-top: 4px; }

/* Process */

.process {
  background: var(--surface-alt);
}

.steps {
  list-style: none;
  margin: 0 0 56px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  counter-reset: none;
}

.steps li {
  position: relative;
  padding-top: 8px;
}

.steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 28px;
  left: 56px;
  right: -12px;
  height: 1px;
  background: var(--line);
}

.step-num {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold);
  font-family: var(--font-display);
  font-weight: 600;
  margin-bottom: 14px;
}

.steps h3 { font-size: 1.05rem; }

.steps p {
  color: var(--ink-soft);
  font-size: 0.95rem;
  margin: 0;
}

.subhead {
  font-family: var(--font-display);
  font-size: 1.4rem;
  margin-bottom: 20px;
}

/* About */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.7fr;
  gap: clamp(32px, 6vw, 72px);
  align-items: start;
}

.about-photo {
  position: sticky;
  top: 112px;
}

.about-photo img {
  border-radius: calc(var(--radius) + 4px);
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 30%;
  width: 100%;
}

.about-meta {
  margin: 24px 0 0;
  display: grid;
  gap: 18px;
}

.about-meta dt {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-text);
  margin-bottom: 4px;
}

.about-meta dd {
  margin: 0;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.about-copy h3 {
  margin-top: 32px;
  font-family: var(--font-display);
  font-size: 1.3rem;
}

.highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 28px 0 8px;
}

.highlight {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  display: grid;
  gap: 2px;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.highlight-num {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.6rem;
  color: var(--navy);
}

.tick-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.tick-list li {
  position: relative;
  padding-left: 28px;
  color: var(--ink-soft);
}

.tick-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.55em;
  width: 12px;
  height: 7px;
  border-left: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  transform: rotate(-45deg);
}

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

/* Mission */

.mission {
  background: var(--navy);
  color: #d9dee7;
}

.mission .eyebrow { color: var(--gold); }

.mission-statement {
  max-width: 880px;
  margin-bottom: 56px;
}

.mission-statement h2 {
  color: #fff;
  font-weight: 500;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1.3;
}

.values {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  overflow: hidden;
}

.value {
  background: var(--navy);
  padding: 24px;
}

.value h3 {
  color: var(--gold);
  font-size: 1.02rem;
}

.value p {
  margin: 0;
  font-size: 0.94rem;
  color: #c3cad6;
}

/* Contact */

.contact-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
}

.contact-inner p:not(.eyebrow) {
  color: var(--ink-soft);
  font-size: 1.08rem;
  max-width: 32em;
}

.contact-methods {
  display: grid;
  gap: 14px;
}

.contact-method {
  display: grid;
  gap: 2px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 24px;
  text-decoration: none;
  color: var(--ink);
}

a.contact-method:hover {
  border-color: var(--navy);
  box-shadow: var(--shadow);
}

.contact-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-text);
}

.contact-value {
  font-size: 1.12rem;
  font-weight: 600;
  color: var(--navy);
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.footer-inner p { margin: 0; }

.footer-inner a {
  color: var(--ink-soft);
  text-decoration: none;
}

/* Responsive */

@media (max-width: 960px) {
  .card-grid.four { grid-template-columns: repeat(2, 1fr); }

  .steps { grid-template-columns: 1fr; gap: 0; }

  .steps li {
    display: grid;
    grid-template-columns: 42px 1fr;
    column-gap: 18px;
    padding: 0 0 24px;
  }

  .steps li .step-num { grid-row: span 2; margin: 0; }
  .steps li h3 { margin: 8px 0 2px; }

  .steps li:not(:last-child)::after {
    top: 48px;
    bottom: 4px;
    left: 21px;
    right: auto;
    width: 1px;
    height: auto;
  }

  .service-summary { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  :root {
    --bar-h: 72px;
    --logo-h: 100px;
    --logo-top: 8px;
  }

  html { scroll-padding-top: 84px; }

  .site-header.scrolled,
  .site-header.menu-open {
    --logo-h: 56px;
    --logo-top: 8px;
  }

  .nav-toggle { display: block; }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--gutter) 20px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 24px rgba(20, 36, 59, 0.08);
    display: none;
  }

  .site-nav.open { display: flex; }

  .site-nav a:not(.btn) {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
  }

  .site-nav .btn { margin-top: 16px; }

  .hero-grid,
  .about-grid,
  .contact-inner { grid-template-columns: 1fr; }

  .hero-card {
    justify-self: start;
    display: grid;
    grid-template-columns: 120px 1fr;
    max-width: 520px;
  }

  .hero-card img {
    height: 100%;
    aspect-ratio: auto;
  }

  .hero-card-body { padding: 16px 18px; }

  .card-grid.three { grid-template-columns: 1fr; }

  .about-photo { position: static; max-width: 420px; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }

  .card-grid.four,
  .highlights { grid-template-columns: 1fr; }

  .hero-actions .btn { flex: 1 1 100%; }

  .hero-card { grid-template-columns: 1fr; }

  .hero-card img {
    aspect-ratio: 5 / 4;
    height: auto;
  }

  .service { padding: 22px 20px; }

  .contact-method { padding: 18px 20px; }

  .contact-value { font-size: clamp(0.95rem, 4.3vw, 1.12rem); }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
