:root {
  color-scheme: light;
  --paper: #fbf8f3;
  --ink: #1c2527;
  --teal: #064e51;
  --mint: #e5f1ec;
  --muted: #4c5859;
  --rule: #cbd7d2;
  font-family: system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
body { margin: 0; padding-bottom: calc(62px + env(safe-area-inset-bottom)); }
a { color: inherit; }
img { display: block; max-width: 100%; }
svg { width: 1.2em; height: 1.2em; flex: none; }
h1, h2, h3 { font-family: Georgia, serif; margin: 0; line-height: 1.06; }
h1 { font-size: clamp(2.25rem, 7.3vw, 4.65rem); letter-spacing: -.042em; max-width: 14ch; }
h2 { font-size: clamp(2rem, 5.4vw, 3.5rem); letter-spacing: -.038em; }
h3 { font-size: 1.35rem; letter-spacing: -.025em; }
p { margin: .55rem 0 0; line-height: 1.55; color: var(--muted); }
.shell { width: min(100% - 32px, 1150px); margin-inline: auto; }
.skip { position: absolute; top: -5rem; z-index: 5; background: white; padding: 1rem; }
.skip:focus { top: 0; }
:focus-visible { outline: 3px solid #177975; outline-offset: 4px; }
.header { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 11px 0; border-bottom: 1px solid var(--rule); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--teal); }
.brand img { width: 42px; height: 42px; object-fit: contain; mix-blend-mode: multiply; }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 1.45rem; line-height: 1.1; }
.brand small { font-size: .75rem; color: var(--ink); }
.hero { display: grid; gap: 17px; padding-block: 21px 23px; }
.eyebrow { margin: 0 0 10px; text-transform: uppercase; letter-spacing: .12em; font-size: .75rem; font-weight: 800; color: var(--teal); }
.intro { max-width: 39ch; margin: 13px 0 15px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }
.actions .btn { flex: 1 1 auto; }
.btn { min-height: 45px; padding: 8px 12px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; font-weight: 700; font-size: .93rem; color: #fff; background: var(--teal); border: 1px solid transparent; border-radius: 8px; text-decoration: none; text-align: center; }
.btn.green { background: #18763b; }
.btn.outline { background: transparent; color: var(--teal); border-color: var(--teal); }
.btn:hover { filter: brightness(.92); }
.textlink { min-height: 44px; display: inline-flex; align-items: center; gap: 7px; color: var(--teal); font-weight: 650; text-underline-offset: 3px; }
.hero .textlink { display: flex; justify-content: center; }
figure { margin: 0; }
figure img { width: 100%; height: auto; aspect-ratio: 1.68; object-fit: cover; border-radius: 11px; }
figcaption { margin-top: 6px; color: var(--muted); font-size: .79rem; }
.section { padding-block: 34px; }
#care { border-top: 1px solid var(--rule); }
.cards { display: grid; gap: 22px; margin-top: 20px; }
.cards img { width: 100%; aspect-ratio: 2.5; object-fit: cover; border-radius: 9px; }
.cards article div { padding-top: 9px; }
.cards p, .rows p, .therapy-list p { margin-top: 4px; }
.more { margin-top: 30px; }
.rows { margin-top: 8px; }
.rows article { display: grid; grid-template-columns: minmax(90px, 34%) 1fr; gap: 13px; align-items: center; border-bottom: 1px solid var(--rule); padding-block: 13px; }
.rows img { width: 100%; aspect-ratio: 1.35; object-fit: cover; border-radius: 8px; }
.rows p { font-size: .93rem; }
.soft { background: var(--mint); }
.first-visit { display: grid; gap: 20px; }
.first-visit ol { margin: 0; padding: 0; list-style: none; counter-reset: visit-step; }
.first-visit li { counter-increment: visit-step; position: relative; padding: 11px 0 11px 49px; border-top: 1px solid var(--rule); }
.first-visit li::before { content: counter(visit-step); position: absolute; left: 0; top: 12px; width: 35px; height: 35px; display: grid; place-items: center; border: 1px solid var(--teal); border-radius: 50%; color: var(--teal); font-weight: 700; }
.lede { max-width: 55ch; }
.therapy-list { display: grid; gap: 0 16px; margin-top: 20px; }
.therapy-list article { display: flex; align-items: flex-start; gap: 12px; border-top: 1px solid var(--rule); padding: 13px 0; }
.therapy-list svg, .home > svg { color: var(--teal); background: var(--mint); border-radius: 8px; width: 40px; height: 40px; padding: 8px; }
.therapy-list h3 { font: 700 1rem system-ui, sans-serif; }
.doctor { background: var(--teal); color: #fff; }
.doctor p { color: #ecf7f4; }
.visit { display: grid; gap: 25px; }
address { font-style: normal; margin: 14px 0 9px; line-height: 1.55; }
.number { color: var(--teal); font-weight: 700; }
.visit .actions, .home .btn { margin-top: 14px; }
.home { padding: 18px; border-radius: 11px; background: var(--mint); }
.home > svg { background: #fff; margin-bottom: 8px; }
footer { border-top: 1px solid var(--rule); padding-block: 17px; color: var(--muted); font-size: .85rem; }
.contact-bar { position: fixed; inset: auto 0 0; display: grid; grid-template-columns: repeat(3,1fr); padding-bottom: env(safe-area-inset-bottom); background: var(--teal); color: white; z-index: 3; }
.contact-bar a { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 56px; text-decoration: none; font-weight: 700; font-size: .83rem; }
.contact-bar a + a { border-left: 1px solid #ffffff55; }
.contact-bar a:focus-visible { outline-offset: -4px; outline-color: white; }
@media (min-width: 510px) { .therapy-list { grid-template-columns: 1fr 1fr; } }
@media (min-width: 760px) {
  body { padding-bottom: 0; }
  .shell { width: min(100% - 64px, 1150px); }
  .header { padding-block: 16px; }
  .hero { grid-template-columns: 1.06fr 1fr; align-items: center; gap: 32px; padding-block: 48px; }
  .hero figure img { aspect-ratio: 1.28; }
  .hero .actions { max-width: 350px; }
  .hero .textlink { justify-content: flex-start; }
  .section { padding-block: 48px; }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .cards img { aspect-ratio: 1.8; }
  .rows { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
  .first-visit, .visit { grid-template-columns: 1fr 1fr; align-items: start; gap: 32px; }
  .contact-bar { display: none; }
}

@media (prefers-reduced-motion: no-preference) {
  .btn, .contact-bar a { transition: transform 140ms ease, filter 140ms ease; }
  .btn:active, .contact-bar a:active { transform: scale(.97); filter: brightness(.9); }

  @keyframes ease-into-view {
    from { opacity: .45; transform: translateY(9px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .motion-enter { animation: ease-into-view 420ms ease-out both; }
}

.menu-trigger, .menu-close {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--teal);
  cursor: pointer;
}
.menu-trigger svg { width: 24px; height: 24px; }
.menu-close { background: var(--mint); font-size: 1.65rem; }
.drawer {
  position: fixed;
  inset: 0 0 0 auto;
  margin: 0;
  width: min(85vw, 340px);
  max-width: none;
  height: 100%;
  max-height: none;
  padding: 0;
  border: 0;
  background: var(--paper);
  color: var(--ink);
  box-shadow: -12px 0 35px #102f2a30;
}
.drawer::backdrop { background: #092b31a6; }
.drawer-top { padding: 18px 20px; display: flex; align-items: center; justify-content: space-between; }
.drawer-top strong { font: bold 1.7rem Georgia, serif; }
.drawer nav { margin-inline: 20px; }
.drawer nav a {
  display: block;
  border-top: 1px solid var(--rule);
  padding: 15px 5px;
  text-decoration: none;
  font-weight: 650;
}
.drawer nav a:hover { color: var(--teal); background: var(--mint); }
html:has(.drawer[open]) { overflow: hidden; }
@media (prefers-reduced-motion: no-preference) {
  .drawer[open] { animation: drawer-slide 320ms cubic-bezier(.2,.75,.25,1) both; }
  .drawer[open]::backdrop { animation: drawer-dim 240ms ease-out both; }
  @keyframes drawer-slide { from { transform: translateX(100%); } to { transform: translateX(0); } }
  @keyframes drawer-dim { from { opacity: 0; } to { opacity: 1; } }
}

@media (prefers-reduced-motion: no-preference) {
  .drawer[open] { animation-duration: 400ms; animation-timing-function: cubic-bezier(.16, 1, .3, 1); }
  .drawer[open]:not(.closing) nav a {
    animation: drawer-link 300ms cubic-bezier(.16, 1, .3, 1) both;
    animation-delay: calc(80ms + var(--menu-index, 0) * 35ms);
  }
  .drawer nav a:nth-child(2) { --menu-index: 1; }
  .drawer nav a:nth-child(3) { --menu-index: 2; }
  .drawer nav a:nth-child(4) { --menu-index: 3; }
  .drawer nav a:nth-child(5) { --menu-index: 4; }
  .drawer[open].closing { animation: drawer-exit 240ms ease-in both; }
  .drawer[open].closing::backdrop { animation: drawer-undim 240ms ease-in both; }
  @keyframes drawer-link {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
  }
  @keyframes drawer-exit { to { transform: translateX(100%); } }
  @keyframes drawer-undim { to { opacity: 0; } }
}
