:root {
  --cream: #f7f4ed;
  --navy: #012a51;
  --gold: #d4a437;
  --ink: #3a3a3a;
  --muted: #5e5e5e;
  --footer: #5b5b5b;
  --white: #ffffff;
  --max: 1140px;
  --header: 108px;
  --text-scale: 1;
}

* { box-sizing: border-box; }

html {
  font-size: calc(100% * var(--text-scale));
  scroll-behavior: smooth;
  scroll-padding-top: 7.5rem;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--cream);
  color: var(--ink);
  font-family: Merriweather, Georgia, "Times New Roman", serif;
  font-size: 1rem;
  line-height: 1.7;
}

main { flex: 1; }

img { max-width: 100%; }

a { color: var(--navy); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--navy);
  color: var(--white);
  padding: 0.6rem 0.9rem;
  z-index: 100;
  text-decoration: none;
}

.skip:focus { left: 1rem; top: 1rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--cream);
  border-bottom: 1px solid rgba(1, 42, 81, 0.06);
}

.header-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0.35rem 1.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.logo img {
  display: block;
  height: 5.75rem;
  width: auto;
}

.header-end {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-left: auto;
}

.text-size {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.text-size button {
  min-width: 2.25rem;
  min-height: 2.25rem;
  padding: 0.2rem 0.45rem;
  border: 1px solid var(--navy);
  border-radius: 999px;
  background: transparent;
  color: var(--navy);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

#text-smaller { font-size: 0.8125rem; }

#text-larger { font-size: 1.25rem; }

.text-size button:disabled {
  opacity: 0.38;
  cursor: default;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--navy);
  background: transparent;
  color: var(--navy);
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  font-family: inherit;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.site-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.15rem;
}

.site-nav > a,
.dropdown > a {
  color: #3f3f3f;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.55rem 0.75rem;
  border-radius: 999px;
}

.site-nav > a.active,
.dropdown > a.active {
  background: var(--navy);
  color: var(--white);
}

.site-nav > a:hover,
.dropdown > a:hover {
  color: var(--navy);
}

.site-nav > a.active:hover,
.dropdown > a.active:hover {
  color: var(--white);
}

.dropdown { position: relative; }

.dropdown-panel {
  display: none;
  position: absolute;
  top: calc(100% - 2px);
  right: 0;
  width: 320px;
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(1, 42, 81, 0.16);
  padding: 0.45rem 0 0.7rem;
}

.dropdown:hover .dropdown-panel,
.dropdown:focus-within .dropdown-panel,
.dropdown.open .dropdown-panel {
  display: block;
}

.menu-label {
  margin: 0.55rem 1rem 0.15rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6e4716;
}

.dropdown-panel a {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.38rem 1rem;
  text-decoration: none;
  color: #333;
  font-size: 0.90625rem;
  letter-spacing: 0;
  text-transform: none;
  font-weight: 400;
  border-radius: 0;
  white-space: normal;
}

.dropdown-panel a:hover {
  background: var(--cream);
  color: var(--navy);
}

.dropdown-panel img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  flex: none;
}

.view-all {
  font-weight: 700 !important;
  color: var(--navy) !important;
}

.hero img {
  display: block;
  width: 100%;
  height: min(48vw, 500px);
  object-fit: cover;
  object-position: center 42%;
}

.tagline {
  max-width: 980px;
  margin: 1.7rem auto 0.2rem;
  padding: 0 1.25rem;
  text-align: center;
  color: #2c2c2c;
  font-size: clamp(1.45rem, 2.4vw, 1.95rem);
  font-weight: 700;
  line-height: 1.35;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.intro {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
  text-align: center;
  padding: 1.6rem 0 0.4rem;
}

.intro p {
  margin: 0.85rem 0 0;
  color: var(--navy);
  font-size: 0.9375rem;
  line-height: 1.65;
}

.btn-gold,
.btn-outline {
  display: inline-block;
  text-decoration: none;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.78125rem;
  line-height: 1.3;
}

.btn-gold {
  background: #6e4716;
  color: var(--white);
  padding: 0.75rem 1.15rem;
  box-shadow: 0 6px 16px rgba(80, 48, 16, 0.18);
}

.btn-gold:hover { background: #54360f; color: var(--white); }

.btn-outline {
  border: 2px solid #6e4716;
  color: var(--navy);
  background: var(--white);
  padding: 0.65rem 1rem;
  text-transform: none;
  letter-spacing: 0;
  font-size: 1rem;
  font-weight: 700;
}

.btn-outline:hover {
  background: #6e4716;
  color: var(--white);
}

.btn-gold:focus-visible,
.btn-outline:focus-visible,
.site-nav > a.active:focus-visible,
.dropdown > a.active:focus-visible {
  outline-color: var(--white);
  box-shadow: 0 0 0 3px var(--navy);
}

.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
  padding: 2rem 0 3rem;
}

.service img {
  display: block;
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 34px;
}

.service-body {
  background: var(--white);
  margin: -78px 16px 0;
  position: relative;
  padding: 1rem 0.9rem 1.15rem;
  text-align: center;
  box-shadow: 0 10px 24px rgba(1, 42, 81, 0.06);
}

.service-body h2 {
  margin: 0 0 0.45rem;
  font-size: 1rem;
  letter-spacing: 0.03em;
  color: #1c1c1c;
}

.service-body p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
  color: #2b2b2b;
}

.map {
  display: block;
  width: 100%;
  height: 450px;
  border: 0;
  background: #e7e2d8;
}

.map-link {
  text-align: center;
  margin: 0;
  padding: 0.9rem 1.25rem 0.5rem;
}

.video-band {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.7rem;
  max-width: 40rem;
  margin: 0 auto;
  padding: 1.6rem 1.25rem 2.2rem;
}

.video-band h2 {
  margin: 0;
  color: var(--navy);
  font-size: 1.5rem;
}

.video-band p { margin: 0; }

.video-band iframe {
  width: 267px;
  height: 476px;
  border: 0;
  background: #111;
}

.site-footer {
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  padding: 1.8rem 1.25rem 1.5rem;
  color: var(--muted);
  font-size: 0.90625rem;
}

.footer-grid {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}

.site-footer p,
.site-footer address { margin: 0; font-style: normal; }

.footer-label { font-weight: 700; color: var(--navy); }

.site-footer a { color: var(--navy); }

.prose a,
.site-footer a,
.legal-bar a,
.map-link a,
.video-band a {
  text-underline-offset: 0.15em;
}

.legal-bar {
  background: var(--footer);
  color: #f3f3f3;
  text-align: center;
  padding: 0.85rem 1rem 1rem;
  font-size: 0.875rem;
}

.legal-bar p { margin: 0.15rem 0; }

.legal-bar a { color: #f3f3f3; }

.to-top {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(91, 91, 91, 0.9);
  color: var(--white);
  display: grid;
  place-items: center;
  text-decoration: none;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.to-top.show { opacity: 1; pointer-events: auto; }

.page-title,
.bio-head { text-align: center; padding: 2.1rem 1rem 0.2rem; }

.page-title h1,
.bio-head h1 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  line-height: 1.25;
}

.bio-head img {
  width: 220px;
  height: 220px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 0.8rem;
  box-shadow: 0 10px 28px rgba(1, 42, 81, 0.15);
}

.prose {
  max-width: 820px;
  margin: 0 auto;
  padding: 1rem 1.25rem 3.2rem;
}

.prose h2,
.prose h3,
.prose h4 {
  color: var(--navy);
  line-height: 1.3;
  margin: 1.5rem 0 0.45rem;
}

.prose p { margin: 0 0 0.9rem; }

.prose ul,
.prose ol { margin: 0 0 1rem; padding-left: 1.2rem; }

.prose img {
  display: block;
  max-width: min(100%, 680px);
  height: auto;
  margin: 1rem auto;
}

.embed {
  position: relative;
  width: min(100%, 720px);
  margin: 1.2rem auto;
  padding-top: 56.25%;
}

.embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.team-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.8rem;
  padding: 1.5rem 1rem 0.4rem;
}

.team-hero {
  margin-top: 1.2rem;
  position: relative;
  background-size: cover;
  background-position: center;
  padding: 2.6rem 1rem 3.2rem;
}

.team-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.74);
}

.portrait-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 180px);
  justify-content: center;
  gap: 1.8rem 2.2rem;
}

.portrait {
  text-align: center;
  color: var(--white);
  text-decoration: none;
}

.portrait img {
  width: 168px;
  height: 168px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, 0.35);
}

.portrait span {
  display: block;
  margin-top: 0.55rem;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.staff-block { padding: 0.4rem 0 2.4rem; }

.staff-block h2 {
  text-align: center;
  color: var(--navy);
  margin: 0 0 1rem;
  font-size: 1.15rem;
  letter-spacing: 0.06em;
}

.staff-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.3rem;
}

.staff-card {
  background: var(--white);
  text-align: center;
  text-decoration: none;
  color: var(--navy);
  padding: 1rem 0.7rem 1.1rem;
  border-radius: 16px;
  box-shadow: 0 8px 22px rgba(1, 42, 81, 0.06);
}

.staff-card img {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: 50%;
}

.staff-card span {
  display: block;
  margin-top: 0.7rem;
  font-size: 0.90625rem;
  line-height: 1.35;
}

.book,
.new-patient {
  max-width: 1080px;
  margin: 0 auto;
  padding: 2.2rem 1.25rem 3.4rem;
  display: grid;
  gap: 1.8rem;
  align-items: center;
}

.book { grid-template-columns: 1.3fr 0.7fr; }

.new-patient {
  grid-template-columns: minmax(220px, 360px) 1fr;
  align-items: start;
}

.new-patient > img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 12px 30px rgba(1, 42, 81, 0.16);
}

.book p,
.new-patient .prose { margin: 0; padding: 0; max-width: none; }

.banner {
  min-height: 190px;
  background-size: cover;
  background-position: center;
  display: grid;
  place-items: center;
  position: relative;
}

.banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(1, 42, 81, 0.5);
}

.banner h1 {
  position: relative;
  color: var(--white);
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
}

.reviews {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.6rem 1.25rem 3rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.review {
  background: var(--white);
  border-radius: 14px;
  padding: 1rem 1.05rem 1.1rem;
  box-shadow: 0 8px 22px rgba(1, 42, 81, 0.06);
}

.review h2 {
  margin: 0;
  font-size: 1rem;
  color: var(--navy);
}

.stars { color: #6e4716; letter-spacing: 0.08em; margin: 0.2rem 0 0.45rem; font-size: 1.15rem; }

.review p { margin: 0; font-size: 0.90625rem; color: #444; }

.review .source {
  margin-top: 0.7rem;
  font-size: 0.875rem;
  color: #3a3a3a;
}

.article-list {
  max-width: 900px;
  margin: 0 auto;
  padding: 1.4rem 1.25rem 3rem;
  display: grid;
  gap: 1rem;
}

.article-card {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 1rem;
  background: var(--white);
  text-decoration: none;
  color: inherit;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(1, 42, 81, 0.06);
}

.article-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.article-card div { padding: 0.9rem 1rem 1rem 0; }

.article-card h2 { margin: 0 0 0.25rem; font-size: 1.2rem; color: var(--navy); }

.article-card time { display: block; color: #3a3a3a; font-size: 0.875rem; margin-bottom: 0.35rem; }

.article-card p { margin: 0; color: #444; font-size: 0.90625rem; }

.byline {
  text-align: center;
  color: #3a3a3a;
  margin: 0.35rem 0 0;
}

@media (max-width: 980px) {
  .nav-toggle { display: inline-block; }

  .header-inner { position: relative; }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--cream);
    border-bottom: 1px solid rgba(1, 42, 81, 0.08);
    padding: 0.4rem 0 0.8rem;
    box-shadow: 0 16px 30px rgba(1, 42, 81, 0.08);
  }

  .site-nav.open { display: flex; }

  .dropdown-panel {
    position: static;
    width: auto;
    box-shadow: none;
    background: transparent;
    display: none;
    padding-bottom: 0.2rem;
  }

  .dropdown.open .dropdown-panel { display: block; }

  .intro,
  .services,
  .footer-grid,
  .book,
  .new-patient,
  .reviews,
  .staff-grid {
    grid-template-columns: 1fr;
  }

  .portrait-grid { grid-template-columns: repeat(2, 150px); }

  .logo img { height: 4.5rem; }

  .article-card { grid-template-columns: 1fr; }

  .article-card div { padding: 0.2rem 1rem 1rem; }

  .service img { height: 240px; }
}

.desk {
  max-width: 40rem;
  margin: 0 auto;
  padding: 0.4rem 1.25rem 3rem;
}

.desk p { margin: 0.4rem 0 0; }

.desk label {
  display: block;
  margin: 1.1rem 0 0.35rem;
  font-weight: 700;
  color: var(--navy);
}

.desk input {
  display: block;
  width: 100%;
  max-width: 28rem;
  font: inherit;
}

.desk .error {
  color: #6e1414;
  font-weight: 700;
}

.desk .actions { margin-top: 1.2rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .to-top { transition: none; }
}
