:root {
  --paper: #f7f4ed;
  --ink: #24302f;
  --muted: #667170;
  --sage: #8aa59a;
  --pine: #24483f;
  --clay: #ba6f52;
  --sky: #d8e9ee;
  --white: #fffdf8;
  --line: rgba(36, 48, 47, 0.14);
  --shadow: 0 22px 70px rgba(36, 48, 47, 0.16);
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 78px;
  padding: 6px max(24px, calc((100vw - 1120px) / 2));
  border: 0;
  border-radius: 0;
  background: rgba(247, 244, 237, 0.94);
  box-shadow: 0 14px 42px rgba(36, 48, 47, 0.12);
  backdrop-filter: blur(18px);
}

.logo-group {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 18px;
}

.text-logo {
  display: flex;
  flex: 0 0 auto;
  width: auto;
  min-height: 70px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border-radius: 0;
  background: transparent;
  color: var(--pine);
  line-height: 1;
  text-align: left;
}

.text-logo span {
  display: block;
}

.logo-name {
  font-size: 1.62rem;
  font-weight: 900;
  letter-spacing: 0;
  text-align: center;
}

.logo-specialty {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 780;
  letter-spacing: 0.06em;
  text-align: center;
  text-transform: uppercase;
}

.practice-logo {
  display: inline-flex;
  width: 172px;
  min-height: 60px;
  align-items: center;
  justify-content: center;
  padding: 6px 8px;
}

.practice-logo img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 50px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  flex: 0 1 auto;
  gap: 6px;
  padding: 4px;
  border-radius: 999px;
}

.nav-links a,
.nav-call,
.button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 750;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

.nav-links a {
  padding: 0 15px;
  color: var(--muted);
  font-size: 0.88rem;
  white-space: nowrap;
}

.nav-links a:hover {
  background: var(--sky);
  color: var(--ink);
}

.nav-links a[aria-current="page"] {
  background: var(--pine);
  color: var(--white);
}

.nav-call {
  min-width: 76px;
  padding: 0 18px;
  background: var(--clay);
  color: var(--white);
}

.nav-links .nav-call {
  color: var(--white);
}

.hero {
  position: relative;
  height: 86svh;
  min-height: 720px;
  max-height: 840px;
  display: grid;
  align-items: end;
  overflow: hidden;
  padding: 128px max(24px, calc((100vw - 1120px) / 2)) 58px;
  background: var(--pine);
}

.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(20, 37, 35, 0.86) 0%, rgba(20, 37, 35, 0.64) 38%, rgba(20, 37, 35, 0.06) 78%),
    linear-gradient(0deg, rgba(20, 37, 35, 0.32), rgba(20, 37, 35, 0));
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(720px, 100%);
  color: var(--white);
}

.hero-portrait {
  position: absolute;
  z-index: 2;
  right: max(24px, calc((100vw - 1120px) / 2));
  bottom: 54px;
  width: min(28vw, 310px);
  margin: 0;
  border: 1px solid rgba(255, 253, 248, 0.48);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 24px 70px rgba(20, 37, 35, 0.34);
}

.hero-portrait img,
.doctor-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--clay);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #f0b996;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.02;
}

h1 {
  max-width: 760px;
  font-size: clamp(2.8rem, 5.2vw, 4.8rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3.8rem);
}

h3 {
  font-size: 1.28rem;
}

.hero-copy {
  max-width: 580px;
  margin: 24px 0 0;
  color: rgba(255, 253, 248, 0.86);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
}

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

.button {
  min-width: 148px;
  padding: 0 22px;
  border: 1px solid transparent;
}

.button:hover,
.nav-call:hover {
  transform: translateY(-1px);
}

.button.primary {
  background: var(--clay);
  color: var(--white);
}

.button.secondary {
  border-color: rgba(255, 253, 248, 0.54);
  background: rgba(255, 253, 248, 0.14);
  color: var(--white);
}

.visit .button.secondary {
  border-color: var(--line);
  background: var(--white);
  color: var(--ink);
}

.page-hero {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: 180px 0 82px;
}

.about-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: 64px;
  align-items: end;
}

.page-hero h1 {
  max-width: 980px;
}

.page-hero p:not(.eyebrow) {
  max-width: 720px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.28rem);
}

.education-photo-hero {
  position: relative;
  width: 100%;
  max-width: none;
  min-height: 560px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin: 0;
  padding: 152px max(24px, calc((100vw - 1120px) / 2)) 86px;
  overflow: hidden;
  background-position: center;
  background-size: cover;
  color: var(--white);
}

.education-photo-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(20, 37, 35, 0.84) 0%, rgba(20, 37, 35, 0.58) 38%, rgba(20, 37, 35, 0.08) 76%),
    linear-gradient(0deg, rgba(20, 37, 35, 0.22), rgba(20, 37, 35, 0));
}

.education-photo-hero > * {
  position: relative;
  z-index: 1;
}

.education-photo-hero .eyebrow {
  color: #f0b996;
}

.education-photo-hero h1 {
  color: var(--white);
}

.education-photo-hero p:not(.eyebrow) {
  color: rgba(255, 253, 248, 0.88);
}

.education-photo-hero .back-home-link {
  align-self: flex-start;
  border-color: rgba(255, 253, 248, 0.34);
  background: rgba(255, 253, 248, 0.92);
}

.joint-pain-hero {
  background-image: url("assets/education-joint-pain-bg.png");
}

.overuse-hero {
  background-image: url("assets/education-overuse-bg.png");
}

.sports-physicals-hero {
  background-image: url("assets/education-sports-physicals-bg.png");
}

.return-to-play-hero {
  background-image: url("assets/education-return-to-play-bg.png");
}

.weight-wellness-hero {
  background-image: url("assets/education-weight-wellness-bg.png");
}

.back-home-link {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  margin: 0 0 28px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--pine);
  font-weight: 780;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

.back-home-link:hover {
  background: var(--sky);
  color: var(--ink);
  transform: translateY(-1px);
}

.doctor-photo {
  aspect-ratio: 4 / 5;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow);
}

.intro-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border-bottom: 1px solid var(--line);
}

.intro-item {
  min-height: 136px;
  padding: 34px max(24px, calc((100vw - 1120px) / 2));
  background: var(--white);
}

.intro-item span,
.timeline-item span,
.card-number {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.intro-item strong {
  display: block;
  max-width: 280px;
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  line-height: 1.1;
}

.section {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: 110px 0;
}

.split,
.visit,
.credential-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1fr);
  gap: 74px;
  align-items: start;
}

.section-copy,
.credential-copy p,
.visit p {
  color: var(--muted);
  font-size: 1.08rem;
}

.section-copy p:first-child {
  margin-top: 0;
}

.care-grid {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto 46px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.care-card {
  min-height: 292px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 10px 28px rgba(36, 48, 47, 0.06);
}

.care-card h3 {
  margin-bottom: 18px;
}

.care-card p {
  margin: 0;
  color: var(--muted);
}

.page-section {
  border-top: 1px solid var(--line);
}

.list-section,
.testimonial-grid,
.treatment-table {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto 96px;
}

.condition-heading {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto 46px;
  padding: 34px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.condition-heading h2 {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
}

.hero-condition-select {
  display: grid;
  max-width: 460px;
  margin-top: 34px;
  gap: 10px;
}

.hero-condition-select span {
  color: var(--pine);
  font-size: 0.86rem;
  font-weight: 850;
}

.hero-condition-select select {
  min-height: 52px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-weight: 750;
  padding: 0 16px;
}

.sticky-condition-nav {
  position: sticky;
  z-index: 12;
  top: 82px;
  padding: 12px max(24px, calc((100vw - 1120px) / 2));
  background: rgba(247, 244, 237, 0.96);
  box-shadow: 0 10px 28px rgba(36, 48, 47, 0.08);
  backdrop-filter: blur(16px);
}

.sticky-condition-nav label {
  display: grid;
  max-width: 420px;
  gap: 8px;
}

.sticky-condition-nav span {
  color: var(--pine);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.sticky-condition-nav select {
  min-height: 46px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-weight: 760;
  padding: 0 14px;
}

.condition-detail-page {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto 110px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.42fr);
  gap: 58px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}

.condition-detail-page p,
.condition-detail-page li {
  color: var(--muted);
  font-size: 1.06rem;
}

.condition-detail-page aside {
  padding: 28px;
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 10px 28px rgba(36, 48, 47, 0.06);
}

.condition-detail-page aside h3 + ul {
  margin-bottom: 28px;
}

.condition-detail-page ul {
  margin: 18px 0 0;
  padding-left: 20px;
}

.list-section,
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.feature-card,
.quote-card {
  min-height: 260px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 10px 28px rgba(36, 48, 47, 0.06);
}

.feature-card span,
.quote-card span,
.treatment-row span {
  display: block;
  margin-bottom: 12px;
  color: var(--clay);
  font-size: 0.8rem;
  font-weight: 850;
  text-transform: uppercase;
}

.feature-card p,
.quote-card p,
.treatment-row p,
.contact-notes li {
  color: var(--muted);
}

.feature-card p,
.quote-card p {
  margin-bottom: 0;
}

.feature-card.compact {
  min-height: 250px;
}

.testimonial-feedback {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto 72px;
  display: grid;
  grid-template-columns: minmax(240px, 0.42fr) minmax(0, 1fr);
  gap: 34px;
  align-items: start;
}

.rating-summary {
  min-height: 240px;
  padding: 30px;
  border-radius: 8px;
  background: var(--pine);
  color: var(--white);
  box-shadow: var(--shadow);
}

.rating-summary .eyebrow {
  color: #f0b996;
}

.rating-summary strong {
  display: block;
  margin-bottom: 16px;
  font-size: clamp(2.2rem, 4vw, 4rem);
  line-height: 0.98;
}

.rating-summary span {
  color: rgba(255, 253, 248, 0.82);
  font-size: 1.08rem;
}

.feature-card a {
  display: inline-flex;
  margin-top: 22px;
  color: var(--pine);
  font-weight: 850;
}

.treatment-highlight {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1fr);
  gap: 42px;
  align-items: start;
  border-top: 1px solid var(--line);
}

.treatment-highlight > div:first-child p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.08rem;
}

.highlight-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.treatment-detail {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto 34px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.58fr);
  gap: 54px;
  align-items: stretch;
  padding: 74px 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: 104px;
}

.treatment-detail.alternate {
  margin-top: 74px;
}

.detail-copy p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.08rem;
}

.media-placeholder {
  min-height: 360px;
  display: grid;
  align-content: end;
  padding: 28px;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(36, 72, 63, 0.1), rgba(36, 72, 63, 0.72)),
    url("assets/hero-care-sports-medicine.png") center / cover;
  color: var(--white);
  overflow: hidden;
}

.media-placeholder.dark {
  background:
    linear-gradient(180deg, rgba(186, 111, 82, 0.08), rgba(36, 48, 47, 0.78)),
    url("assets/hero-care-sports-medicine.png") center / cover;
}

.media-placeholder span {
  display: block;
  margin-bottom: 10px;
  color: #f0b996;
  font-size: 0.82rem;
  font-weight: 850;
  text-transform: uppercase;
}

.media-placeholder p {
  max-width: 260px;
  margin: 0;
  color: rgba(255, 253, 248, 0.86);
  font-weight: 720;
}

.education-section {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 54px;
  padding: 0 0 64px;
}

.education-section h3 {
  margin-bottom: 16px;
}

.education-section p {
  color: var(--muted);
}

.treatment-conditions {
  margin-top: 0;
  margin-bottom: 34px;
}

.treatment-table {
  border-top: 1px solid var(--line);
}

.treatment-row {
  display: grid;
  grid-template-columns: minmax(220px, 0.45fr) 1fr;
  gap: 32px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.treatment-row p {
  margin: 0;
  font-size: 1.05rem;
}

.quote-card {
  display: flex;
  min-height: 220px;
  flex-direction: column;
  justify-content: space-between;
}

.quote-card p {
  color: var(--ink);
  font-size: 1.3rem;
  line-height: 1.25;
}

.page-credential {
  margin-top: 0;
}

.contact-layout {
  align-items: start;
}

.appointment-section {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(360px, 1fr);
  gap: 54px;
  align-items: start;
  padding-top: 0;
}

.appointment-section > div p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.08rem;
}

.appointment-form {
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.appointment-form label {
  display: grid;
  gap: 8px;
}

.appointment-form span {
  color: var(--pine);
  font-size: 0.86rem;
  font-weight: 850;
}

.appointment-form input,
.appointment-form select,
.appointment-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  padding: 13px 14px;
}

.appointment-form textarea {
  resize: vertical;
}

.appointment-form input:focus,
.appointment-form select:focus,
.appointment-form textarea:focus {
  outline: 3px solid rgba(216, 233, 238, 0.95);
  border-color: var(--pine);
}

.form-full {
  grid-column: 1 / -1;
}

.checkbox-label {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 12px;
  align-items: start;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.checkbox-label input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--pine);
}

.checkbox-label span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 650;
  line-height: 1.45;
}

.form-trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.sms-terms {
  margin: 18px 0 0;
  padding: 14px 16px;
  border-left: 3px solid var(--clay);
  background: var(--paper);
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

.form-note {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.form-status {
  min-height: 1.4em;
  margin: 12px 0 0;
  color: var(--muted);
  font-weight: 750;
}

.form-status.is-success {
  color: #276548;
}

.form-status.is-error {
  color: #a34332;
}

.appointment-form .button {
  margin-top: 22px;
}

.appointment-form .button:disabled {
  cursor: wait;
  opacity: 0.68;
}

.contact-notes ul {
  margin: 24px 0 0;
  padding-left: 20px;
}

.contact-notes li + li {
  margin-top: 10px;
}

.credential-section {
  width: 100%;
  max-width: none;
  padding: 110px max(24px, calc((100vw - 1120px) / 2));
  background: var(--pine);
  color: var(--white);
}

.credential-copy p {
  max-width: 670px;
  color: rgba(255, 253, 248, 0.76);
}

.timeline {
  display: grid;
  gap: 12px;
}

.timeline-item {
  padding: 24px;
  border: 1px solid rgba(255, 253, 248, 0.18);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.08);
}

.timeline-item span {
  color: #f0b996;
}

.timeline-item strong {
  display: block;
  font-size: 1.18rem;
  line-height: 1.25;
}

.conditions-band {
  width: min(1120px, calc(100% - 48px));
  margin: 76px auto 0;
  padding: 36px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: minmax(240px, 0.7fr) 1fr;
  gap: 40px;
  align-items: center;
}

.conditions-band h2 {
  font-size: clamp(1.7rem, 3vw, 2.5rem);
}

.condition-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.condition-list span,
.condition-list a {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  position: relative;
  z-index: 1;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 16px;
  background: var(--white);
  color: var(--muted);
  cursor: pointer;
  font-weight: 760;
}

.condition-list a:hover {
  background: var(--sky);
  color: var(--ink);
  transform: translateY(-1px);
}

.education-article {
  width: min(920px, calc(100% - 48px));
  margin: 0 auto 110px;
  padding-top: 38px;
  border-top: 1px solid var(--line);
}

.education-article h2 {
  margin-top: 34px;
  font-size: clamp(1.7rem, 3vw, 2.6rem);
}

.education-article h2:first-child {
  margin-top: 0;
}

.education-article p,
.education-article li {
  color: var(--muted);
  font-size: 1.08rem;
}

.education-article ul {
  margin: 18px 0 0;
  padding-left: 22px;
}

.education-cta {
  margin-top: 34px;
  padding: 28px;
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 10px 28px rgba(36, 48, 47, 0.06);
}

.visit {
  align-items: center;
}

.visit-panel {
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.visit-panel h3 {
  margin-bottom: 16px;
}

.map-inset {
  height: 280px;
  margin-top: 24px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--sky);
}

.map-inset iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 34px max(24px, calc((100vw - 1120px) / 2));
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}

.footer p {
  margin: 0;
}

.footer a {
  font-weight: 760;
}

.legal-hero {
  padding-bottom: 46px;
}

.legal-section {
  width: min(820px, calc(100% - 48px));
  margin: 0 auto 110px;
  padding-top: 34px;
  border-top: 1px solid var(--line);
}

.legal-section p {
  color: var(--muted);
  font-size: 1.08rem;
}

.legal-section a {
  color: var(--pine);
  font-weight: 850;
}

.service-area-section {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: 86px 0;
  border-top: 1px solid var(--line);
}

.service-area-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.service-area-card {
  min-height: 190px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 10px 28px rgba(36, 48, 47, 0.06);
}

.service-area-card span {
  display: block;
  margin-bottom: 10px;
  color: var(--clay);
  font-size: 0.8rem;
  font-weight: 850;
  text-transform: uppercase;
}

.service-area-card h3 {
  margin-bottom: 14px;
}

.service-area-card p {
  color: var(--muted);
  margin-bottom: 0;
}

.city-content,
.city-map-section {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto 86px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.48fr);
  gap: 58px;
  align-items: start;
}

.city-content {
  padding-top: 40px;
  border-top: 1px solid var(--line);
}

.city-content p,
.city-map-section p,
.city-panel li {
  color: var(--muted);
  font-size: 1.06rem;
}

.city-panel {
  padding: 28px;
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.city-panel ul {
  margin: 18px 0 24px;
  padding-left: 20px;
}

.city-map-section {
  align-items: stretch;
}

@media (max-width: 900px) {
  html {
    scroll-padding-top: 214px;
  }

  .sticky-condition-nav {
    top: 194px;
    padding: 10px 20px;
  }

  .site-header {
    top: 0;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
    gap: 10px;
    padding: 8px 20px;
  }

  .logo-group {
    width: 100%;
    justify-content: space-between;
    gap: 12px;
  }

  .text-logo {
    min-height: 66px;
  }

  .logo-name {
    font-size: 1.34rem;
  }

  .logo-specialty {
    font-size: 0.6rem;
  }

  .practice-logo {
    width: 156px;
    min-height: 58px;
    padding: 7px 6px;
  }

  .nav-links {
    flex: 1 1 auto;
    flex-wrap: nowrap;
    overflow: visible;
    justify-content: flex-start;
    border-radius: 8px;
  }

  .nav-links a {
    flex: 0 1 auto;
    padding: 0 7px;
    font-size: 0.78rem;
  }

  .hero {
    height: auto;
    max-height: none;
    min-height: 92svh;
    padding: 202px 24px 58px;
  }

  .hero-portrait {
    display: none;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(20, 37, 35, 0.88) 0%, rgba(20, 37, 35, 0.58) 72%, rgba(20, 37, 35, 0.2) 100%),
      linear-gradient(0deg, rgba(20, 37, 35, 0.38), rgba(20, 37, 35, 0));
  }

  .intro-band,
  .split,
  .visit,
  .credential-section,
  .treatment-highlight,
  .treatment-detail,
  .education-section,
  .appointment-section,
  .conditions-band {
    grid-template-columns: 1fr;
  }

  .intro-item {
    min-height: 112px;
    padding: 28px 24px;
  }

  .section {
    width: min(100% - 40px, 1120px);
    padding: 76px 0;
  }

  .page-hero {
    width: min(100% - 40px, 1120px);
    padding: 202px 0 64px;
  }

  .about-hero {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .doctor-photo {
    max-width: 360px;
  }

  .split,
  .visit,
  .credential-section,
  .conditions-band {
    gap: 28px;
  }

  .care-grid {
    width: min(100% - 40px, 1120px);
    grid-template-columns: repeat(2, 1fr);
  }

  .list-section,
  .testimonial-grid,
  .testimonial-feedback {
    width: min(100% - 40px, 1120px);
    grid-template-columns: repeat(2, 1fr);
  }

  .condition-picker,
  .condition-detail-page {
    width: min(100% - 40px, 1120px);
    grid-template-columns: 1fr;
  }

  .condition-heading {
    width: min(100% - 40px, 1120px);
  }

  .highlight-grid {
    grid-template-columns: 1fr;
  }

  .treatment-detail,
  .education-section {
    width: min(100% - 40px, 1120px);
  }

  .treatment-detail {
    gap: 28px;
    padding: 62px 0;
    scroll-margin-top: 214px;
  }

  .appointment-section {
    gap: 28px;
  }

  .media-placeholder {
    min-height: 280px;
  }

  .treatment-table {
    width: min(100% - 40px, 1120px);
  }

  .treatment-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .credential-section {
    padding: 76px 24px;
  }

  .footer {
    flex-direction: column;
  }

  .service-area-section,
  .city-content,
  .city-map-section {
    width: min(100% - 40px, 1120px);
  }

  .service-area-grid,
  .city-content,
  .city-map-section {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .site-header {
    display: grid;
    grid-template-columns: 1fr;
    padding: 8px 10px;
  }

  .sticky-condition-nav {
    top: 194px;
  }

  .logo-group {
    width: 100%;
    justify-content: space-between;
  }

  .text-logo {
    min-height: 58px;
    gap: 4px;
  }

  .logo-name {
    font-size: 1.12rem;
  }

  .logo-specialty {
    font-size: 0.52rem;
  }

  .practice-logo {
    width: min(160px, calc(100% - 210px));
  }

  .nav-links {
    justify-content: center;
    gap: 2px;
  }

  .nav-links a {
    padding: 0 11px;
    font-size: 0.82rem;
  }

  .nav-call {
    min-width: 68px;
  }

  .nav-links a {
    flex: 1 1 96px;
  }

  .nav-links {
    flex-wrap: wrap;
  }

  h1 {
    font-size: 2.86rem;
  }

  .hero-copy {
    font-size: 1rem;
  }

  .care-grid {
    grid-template-columns: 1fr;
  }

  .list-section,
  .testimonial-grid,
  .testimonial-feedback {
    grid-template-columns: 1fr;
  }

  .care-card {
    min-height: 220px;
  }

  .button {
    width: 100%;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .appointment-form {
    padding: 26px;
  }
}
