@import url('fonts/fonts.css');

:root {
  color-scheme: light;
  --surround: #dde3eb;
  --paper: #fff;
  --rail: #e9eff6;
  --rule: #bac7d7;
  --ink: #222a36;
  --muted: #465369;
  --nav: #263f63;
  --heading: #202e44;
  --link: #1d4d86;
  --tint: #e5edf7;
  --action: #8b2637;
  --action-hover: #6f1929;
  --gutter: 1.5rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--surround); scroll-padding-top: .75rem; }
body {
  width: min(68rem, calc(100% - 2rem));
  margin: 1.5rem auto;
  border: 1px solid var(--rule);
  background: var(--paper);
  color: var(--ink);
  font: .9375rem/1.65 "Open Sans", Arial, sans-serif;
}
::selection { background: #cedff5; color: var(--ink); }
:focus-visible { outline: 2px solid #9c263c; outline-offset: 3px; }
a { color: var(--link); text-underline-offset: .18em; }
a:hover { color: var(--heading); text-decoration-thickness: .12em; }
h1, h2, h3 { margin: 0; color: var(--heading); line-height: 1.16; }
h1, h2, .brand { font-family: Georgia, "Times New Roman", serif; }
h1 { font-size: clamp(1.85rem, 3.1vw, 2.55rem); }
h2 { font-size: 1.55rem; }
h3 { font-size: 1rem; }
p { margin: 0 0 1em; max-inline-size: 72ch; }
img { display: block; max-inline-size: 100%; block-size: auto; }
.wrap { margin-inline: var(--gutter); }
.skip { position: absolute; inset: .5rem auto auto .5rem; z-index: 2; background: #fff; padding: .65rem; transform: translateY(-200%); }
.skip:focus { transform: none; }

.site-header { border-top: 4px solid var(--nav); }
.site-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  margin-inline: 0;
  padding: .8rem var(--gutter) 0;
}
.brand {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: .65rem;
  color: var(--heading);
  font-size: clamp(1.25rem, 2.75vw, 1.9rem);
  font-weight: 700;
  line-height: 1.08;
  text-decoration: none;
}
.brand-mark { flex: none; width: 2.5rem; }
.brand-mark img { filter: hue-rotate(53deg); }
.header-phone {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  font-size: clamp(.93rem, 2.2vw, 1.35rem);
  font-weight: 700;
  white-space: nowrap;
  color: var(--action);
}
.header-phone:hover { color: var(--action-hover); }
.menu {
  display: flex;
  flex-wrap: wrap;
  grid-column: 1 / -1;
  margin: .8rem calc(-1 * var(--gutter)) 0;
  padding-inline: var(--gutter);
  background: var(--nav);
}
.menu a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding-inline: 1.1rem;
  border-inline-end: 1px solid #5d7597;
  color: #fff;
  font-size: .875rem;
  font-weight: 650;
  text-decoration: none;
}
.menu a:first-child { border-inline-start: 1px solid #5d7597; }
.menu a:hover, .menu a[aria-current] { background: #e5edf7; color: var(--heading); }
.menu a:focus-visible { outline-offset: -4px; outline-color: #f9df8d; }
.menu a[aria-current]:focus-visible, .menu a:hover:focus-visible { outline-color: #9c263c; }

/* The home directory has a continuous services rail alongside the main reading column. */
.home {
  display: grid;
  grid-template-columns: 14rem minmax(0, 1fr);
  grid-template-areas: "features hero" "features contact" "features team" "features reviews";
}
.hero { grid-area: hero; background: #f5f8fc; border-bottom: 1px solid var(--rule); }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(11rem, .88fr);
  align-items: center;
  gap: 1rem 1.35rem;
  padding-block: 1.6rem;
}
.hero-copy p { margin: .65rem 0 .8rem; color: var(--muted); }
.hero-media { margin: 0; border: 1px solid var(--rule); padding: .25rem; background: #fff; }
.hero-media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; object-position: 55% center; }
.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: .35rem .75rem;
  border: 1px solid var(--action-hover);
  background: var(--action);
  color: #fff;
  font-size: .875rem;
  font-weight: 700;
  text-decoration: none;
}
.button:hover { background: var(--action-hover); color: #fff; }
.action-row, .section-links { display: flex; flex-wrap: wrap; gap: 0 1rem; align-items: center; }
.action-row > a:not(.button), .section-links a, .crumbs a, .section-links [aria-current] {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  font-weight: 650;
}

.section { padding-block: 1.15rem; }
.section h2 { margin-bottom: .75rem; }
.section-intro { color: var(--muted); }
#features {
  grid-area: features;
  border-inline-end: 1px solid var(--rule);
  background: var(--rail);
}
#features .wrap { margin-inline: 1rem; }
#features h2 { font-size: 1.3rem; }
#features p { font-size: .875rem; }
#features .section-layout { display: flex; flex-direction: column; }
#features .section-links { margin-block: 0 .25rem; font-size: .875rem; }
#features .service-list li:last-child { border-bottom: 1px solid var(--rule); }
#contact { grid-area: contact; }
#team { grid-area: team; border-top: 1px solid var(--rule); }
#testimonials { grid-area: reviews; border-top: 1px solid var(--rule); }

.service-list, .clinic-list { margin: 0; padding: 0; list-style: none; }
.service-list { border-top: 1px solid var(--rule); }
.service-list li + li { border-top: 1px solid var(--rule); }
.service-list a, .service-list span {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 44px;
  padding: .45rem 0;
  gap: .5rem;
}
#features .service-list { font-size: .875rem; line-height: 1.45; }
.service-list a { font-weight: 650; }
.section-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: .5rem 1.25rem; }
.clinic-card {
  display: grid;
  grid-template-columns: minmax(8rem, 1fr) minmax(0, 1.4fr);
  align-items: center;
  gap: 0 .75rem;
  padding: .25rem .75rem;
  border-top: 1px solid var(--rule);
}
.clinic-card:last-child { border-bottom: 1px solid var(--rule); }
.clinic-card:nth-child(odd) { background: var(--tint); }
.clinic-card h2, .clinic-card h3 { margin: 0; font: 700 1rem/1.3 "Open Sans", Arial, sans-serif; }
.people > div + div { border-top: 1px solid var(--rule); padding-top: .75rem; }
.people h3 { margin-bottom: .25rem; }
.people p { margin-bottom: .6rem; color: var(--muted); }
details { border-top: 1px solid var(--rule); }
details:last-child { border-bottom: 1px solid var(--rule); }
summary { min-height: 44px; cursor: pointer; font-weight: 650; padding: .55rem 0; }
details blockquote { margin: 0 0 .75rem; }
.street-list { margin-bottom: 1rem; }
.street-list ul { columns: 2 13rem; }

.inner { padding-block: .4rem 2.5rem; min-height: 50vh; }
.crumbs { display: flex; flex-wrap: wrap; gap: 0 1rem; font-size: .85rem; }
.inner h1 { margin: .4rem 0 1rem; max-inline-size: 35ch; }
.inner h2, .inner h3 { margin-block: 1.35em .55em; }
.inner ul, .inner ol { padding-inline-start: 1.25rem; max-inline-size: 72ch; }
.inner .service-list, .inner .clinic-list { list-style: none; padding: 0; }
.inner .clinic-card h2 { margin: 0; }
.section-links[aria-label] {
  margin: .7rem 0 1rem;
  padding-inline: .75rem;
  border-block: 1px solid var(--rule);
  background: var(--tint);
}
.section-links [aria-current] { color: var(--ink); }
.prose { max-inline-size: 74ch; overflow-wrap: anywhere; }
.prose li + li { margin-top: .3em; }
.article-photo { margin: 0 0 1.25rem; }
.table-scroll { max-width: 100%; overflow-x: auto; border: 1px solid var(--rule); margin: .75rem 0 1.25rem; }
table { border-collapse: collapse; width: 100%; background: #fff; font-variant-numeric: tabular-nums; overflow-wrap: normal; }
th, td { padding: .6rem .7rem; text-align: start; border-bottom: 1px solid var(--rule); }
td:last-child, th:last-child { text-align: end; width: 7rem; min-width: 6.4rem; white-space: nowrap; }
th, caption { background: var(--tint); }
tbody tr:nth-child(even) { background: #f2f6fa; }
tr:last-child td { border-bottom: 0; }
caption { text-align: start; padding: .6rem .7rem; font-weight: 750; }

.site-footer { border-top: 1px solid var(--rule); background: var(--tint); color: var(--muted); }
.footer-row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0 .9rem; padding-block: .45rem; }
.site-footer p { margin: 0; font-size: .85rem; }
.site-footer a { display: inline-flex; align-items: center; min-height: 44px; }

@media (max-width: 51rem) {
  :root { --gutter: 1rem; }
  .home { grid-template-columns: 11.5rem minmax(0, 1fr); }
  .hero-grid { gap: .8rem 1rem; }
}
@media (max-width: 43rem) {
  body { width: 100%; margin: 0; border-inline: 0; }
  .home { display: block; }
  #features { border-inline-end: 0; border-bottom: 1px solid var(--rule); }
  #features .service-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 .75rem; border-top: 0; }
  #features .service-list li { border: 0; border-top: 1px solid var(--rule); }
  #features .service-list li:last-child { border-bottom: 0; }
}
@media (max-width: 37rem) {
  .site-bar { column-gap: .65rem; padding-top: .55rem; }
  .brand { font-size: 1.15rem; }
  .brand-mark { width: 1.85rem; }
  .menu { padding-inline: 0; }
  .menu a { justify-content: center; flex: 1 1 auto; padding-inline: .4rem; }
  .hero-grid, .section-layout { grid-template-columns: minmax(0, 1fr); }
  .hero-media { max-inline-size: 25rem; }
  .hero-grid { padding-block: 1.15rem; }
  .clinic-card { grid-template-columns: 1fr; gap: 0; padding-top: .65rem; }
  th, td { padding: .55rem .6rem; }
}
