/* V21 — client copy, section order and responsive editorial spacing. */

/* Home introduction: keep the supplied heading and paragraph together. */
body[data-page="home"] .hero-copy > .hero-introduction {
  max-width: 62ch;
  margin: 18px 0 22px;
  padding: 0;
  text-align: left;
}
.hero-introduction h2 {
  margin: 0 0 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(23px, 2.1vw, 30px);
  font-weight: 700;
  line-height: 1.24;
  letter-spacing: -.025em;
  color: var(--ink);
  text-wrap: balance;
}
.hero-introduction p {
  margin: 0;
  font-size: 16px;
  line-height: 1.65;
  color: var(--muted);
}
.hero-photo-details .hero-location-card strong {
  font-size: clamp(15px, 1.35vw, 19px);
  line-height: 1.5;
}
@media (min-width: 821px) {
  body[data-page="home"] .hero-grid { padding-block: 28px; }
  body[data-page="home"] .hero-copy > h1 { font-size: clamp(56px, 5.8vw, 80px); }
  body[data-page="home"] .hero-photo-frame { height: clamp(440px, calc(100svh - 190px), 690px); }
  body[data-page="home"] .hero-qualification { padding: 12px 15px; margin-bottom: 16px; }
  body[data-page="home"] .hero-copy > .hero-experience { justify-content: flex-start; margin-bottom: 18px; }
  body[data-page="about"] .doctor-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: none; }
}

/* Specialist introduction and two balanced, fully readable profile columns. */
body[data-page="home"] .home-credentials { padding-block: 76px; }
body[data-page="home"] .credentials-heading {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(28px, 4vw, 64px);
  padding-top: 0;
  margin-bottom: 34px;
}
body[data-page="home"] .credentials-heading > div:first-child { padding-top: 0; }
body[data-page="home"] .credentials-heading > p { margin: 0; max-width: 54ch; font-size: 17px; line-height: 1.75; }
body[data-page="home"] .credentials-heading h2 { max-width: 20ch; margin-top: 15px; }
body[data-page="home"] .credentials-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; align-items: stretch; }
body[data-page="home"] .credential-card {
  display: flex;
  flex-direction: column;
  width: auto;
  min-width: 0;
  margin: 0;
  height: auto;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: var(--soft-surface);
}
body[data-page="home"] .credential-profile { position: relative; flex: 0 0 auto; height: 370px; min-height: 0; }
body[data-page="home"] .credential-profile img { width: 100%; height: 100%; object-fit: cover; object-position: center 23%; }
body[data-page="home"] .credential-copy { display: flex; flex: 1; flex-direction: column; padding: 28px; min-width: 0; }
body[data-page="home"] .credential-copy .client-doctor-name,
body[data-page="about"] .doctor-card-body .client-doctor-name {
  min-height: 0;
  margin: 0 0 13px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(16px, 1.65vw, 24px);
  font-weight: 700;
  letter-spacing: -.035em;
  line-height: 1.35;
  white-space: nowrap;
}
body[data-page="home"] .credential-copy .doctor-title,
body[data-page="about"] .doctor-card-body .doctor-title {
  min-height: 0;
  margin: 0 0 16px;
  font-size: 17px;
  line-height: 1.5;
  font-weight: 700;
  color: var(--blue);
}
body[data-page="home"] .credential-copy .doctor-description,
body[data-page="about"] .doctor-card-body .doctor-description {
  min-height: 0;
  margin: 0 0 24px;
  font-size: 16px;
  line-height: 1.75;
  color: var(--muted);
}
body[data-page="home"] .credential-copy h4 { margin: 0; padding-top: 20px; border-top: 1px solid var(--line); font-size: 18px; line-height: 1.4; color: var(--ink); }
body[data-page="home"] .credential-copy ul { margin: 14px 0 24px; padding: 0 0 0 20px; display: grid; gap: 10px; list-style: disc; }
body[data-page="home"] .credential-copy li { font-size: 15px; line-height: 1.65; padding: 0; color: var(--ink); }
body[data-page="home"] .credential-copy li::before { display: none; }
body[data-page="home"] .credential-more { margin-top: auto; align-self: flex-start; }
body[data-page="home"] .experience-mark,
.doctor-portrait .profile-experience {
  position: absolute;
  inset: auto auto 18px 18px;
  width: auto;
  height: auto;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--soft-surface);
  color: var(--ink);
  font-family: Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0;
  z-index: 1;
}
.doctor-portrait { position: relative; }
body[data-page="about"] .doctor-grid { align-items: stretch; gap: 26px; }
body[data-page="about"] .doctor-card-body .qualification-note { margin: 0 0 18px; padding: 12px 14px; }
body[data-page="about"] .doctor-card-body .qualification-note strong { font-size: 15px; }
body[data-page="about"] .doctor-card-body .expertise-box { margin-bottom: 22px; }
body[data-page="about"] .doctor-card-body .expertise-box li { padding-block: 3px; }
body[data-page="about"] .values-section .approach-heading { margin-bottom: 30px; }
body[data-page="about"] .values-section .values-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; align-items: stretch; }
body[data-page="about"] .values-section .values-grid article { margin: 0; min-height: 0; padding: 28px; }
body[data-page="about"] .values-section .values-grid h3 { font-size: clamp(22px, 2vw, 27px); line-height: 1.3; margin-bottom: 14px; }
body[data-page="about"] .values-section .values-grid p { margin: 0; font-size: 16px; line-height: 1.75; }

/* Treatment introductions, native swipe rail, and one common booking action. */
body[data-page="home"] .services-section .split-heading { align-items: center; gap: clamp(28px, 4vw, 60px); }
body[data-page="home"] .services-section .split-heading > p { margin: 0; font-size: 17px; line-height: 1.75; }
.explore-treatment-options { margin: 2px 0 42px; }
.home-treatment-heading { padding-top: 36px; border-top: 1px solid var(--line); margin-bottom: 26px; scroll-margin-top: 115px; }
.home-treatment-heading h2 { font-size: clamp(29px, 3vw, 40px); }
.home-treatment-actions { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 16px; margin: 26px 0 0; }
.home-treatment-stack article.home-treatment-card { cursor: default; }
.home-treatment-stack article.home-treatment-card:hover { transform: none; }
.home-treatment-stack .home-treatment-copy ul { margin-top: auto; padding-top: 20px; }
body[data-page="home"] .story-grid { align-items: stretch; }
body[data-page="home"] .story-copy { display: flex; flex-direction: column; justify-content: center; padding-block: 42px; }
body[data-page="home"] .story-copy > p { margin-bottom: 24px; line-height: 1.75; }
body[data-page="home"] .story-copy ul { margin: 0 0 24px; display: grid; gap: 18px; }
body[data-page="home"] .story-copy li { align-items: flex-start; margin: 0; }
body[data-page="home"] .story-copy li svg { flex: 0 0 22px; margin-top: 3px; }
body[data-page="home"] .story-copy li div { min-width: 0; }
body[data-page="home"] .story-copy li strong { display: block; font-size: 17px; line-height: 1.5; color: #fff; }
body[data-page="home"] .story-copy li span { display: block; margin-top: 3px; font-size: 15px; line-height: 1.65; color: #edf3ff; }
body[data-page="home"] .story-copy > .text-link { align-self: flex-start; }

/* The clinic information strip now follows the reviews. */
body[data-page="home"] .home-clinic-info { margin: 0; padding-block: 20px; border-block: 1px solid var(--line); background: var(--surface-wash); }
body[data-page="home"] .home-clinic-info .trust-grid { padding-block: 12px; gap: 0; align-items: stretch; }
body[data-page="home"] .home-clinic-info .trust-grid > div { display: flex; gap: 16px; align-items: center; padding: 22px 26px; min-width: 0; }
body[data-page="home"] .home-clinic-info .trust-grid svg { width: 28px; height: 28px; flex: 0 0 28px; }
body[data-page="home"] .home-clinic-info .trust-grid strong { font-size: 19px; line-height: 1.35; display: block; }
body[data-page="home"] .home-clinic-info .trust-grid small { margin-top: 6px; font-size: 14px; line-height: 1.6; display: block; }
body[data-page="home"] .home-visit-copy > .visit-intro { margin: 18px 0 20px; font-size: 17px; line-height: 1.75; }
body[data-page="home"] .home-visit-copy > .visit-directions { margin-bottom: 20px; }

/* Shared footer order: clinic identity, invitation, three cards, links, closing line. */
.client-footer .footer-heading,
.client-footer .footer-invitation,
.client-footer .footer-closing-line { width: min(1280px, calc(100% - 80px)); margin-inline: auto; }
.client-footer .footer-heading { margin-bottom: 28px; }
.client-footer .footer-brand { display: flex; align-items: center; gap: 18px; padding: 0; margin: 0; border: 0; }
.client-footer .footer-brand > img { width: 66px; height: 66px; flex: 0 0 66px; object-fit: contain; }
.client-footer .footer-brand strong { font-size: clamp(24px, 3vw, 38px); line-height: 1.25; }
.client-footer .footer-invitation { display: flex; justify-content: space-between; align-items: center; gap: 32px; padding-top: 26px; border-top: 1px solid rgb(255 255 255 / 20%); }
.client-footer .footer-invitation h2 { margin: 0 0 12px; font-size: clamp(27px, 3vw, 38px); line-height: 1.25; color: #fff; }
.client-footer .footer-invitation p { margin: 0; max-width: 67ch; font-size: 17px; line-height: 1.7; color: #edf3ff; }
.client-footer .footer-invitation > a { flex-shrink: 0; min-height: 48px; background: #fff; border-color: #fff; color: #20366f; }
.client-footer .footer-patient-guide { width: min(1280px, calc(100% - 80px)); margin: 32px auto 42px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; border: 0; background: transparent; }
.client-footer .footer-patient-guide section { min-height: 0; padding: 24px; display: grid; grid-template-columns: 1fr; gap: 16px; border: 1px solid rgb(255 255 255 / 22%); border-radius: 16px; background: rgb(255 255 255 / 5%); }
.client-footer .footer-patient-guide section > span { width: 36px; height: 36px; font-size: 13px; background: rgb(255 255 255 / 12%); }
.client-footer .footer-patient-guide h2 { margin: 0 0 12px; font-family: Arial, sans-serif; font-size: 16px; line-height: 1.5; letter-spacing: .035em; color: #fff; }
.client-footer .footer-patient-guide p { margin: 0; font-size: 15px; line-height: 1.75; color: #edf3ff; }
.client-footer .footer-grid { width: min(1280px, calc(100% - 80px)); margin-inline: auto; padding-top: 28px; border-top: 1px solid rgb(255 255 255 / 20%); }
.client-footer .footer-closing-line { margin-block: 30px 0; padding: 24px 0; border-top: 1px solid rgb(255 255 255 / 20%); font-size: 18px; line-height: 1.6; color: #fff; text-align: center; }
.client-footer .footer-bottom { margin-top: 0; }

@media (min-width: 821px) {
  body[data-page="home"] .credential-copy .doctor-title,
  body[data-page="about"] .doctor-card-body .doctor-title { min-height: 3em; }
  body[data-page="home"] .credential-copy .doctor-description,
  body[data-page="about"] .doctor-card-body .doctor-description { min-height: 7em; }
}
@media (min-width: 821px) and (max-width: 1100px) {
  body[data-page="home"] .credential-copy .doctor-description,
  body[data-page="about"] .doctor-card-body .doctor-description { min-height: 10.5em; }
}

@media (min-width: 821px) and (max-width: 1100px) {
  body[data-page="home"] .credential-copy { padding: 22px 18px; }
  body[data-page="about"] .doctor-grid .doctor-card-body { padding: 24px 18px; }
  body[data-page="home"] .credential-profile { height: 300px; }
  body[data-page="home"] .hero-introduction p { font-size: 15px; }
  .client-footer .footer-invitation { align-items: flex-start; flex-direction: column; gap: 20px; }
  .client-footer .footer-patient-guide section { padding: 20px; }
}
@media (max-width: 820px) {
  body[data-page="home"] .hero-grid { display: flex; padding-block: 18px; }
  body[data-page="home"] .hero-copy > .hero-introduction { order: 6; width: calc(100% - 36px); max-width: 62ch; margin: 6px auto 22px; text-align: center; }
  .hero-introduction h2 { font-size: clamp(23px, 5.4vw, 30px); margin-bottom: 12px; }
  .hero-introduction p { font-size: 15px; line-height: 1.65; }
  body[data-page="home"] .hero-visual { order: 7; margin-bottom: 14px; }
  body[data-page="home"] .hero-copy > .hero-experience { order: 8; }
  body[data-page="home"] .home-credentials { padding-block: 48px; }
  body[data-page="home"] .credentials-heading { grid-template-columns: 1fr; gap: 18px; margin-bottom: 26px; }
  body[data-page="home"] .credentials-heading > p { grid-column: auto; grid-row: auto; font-size: 16px; }
  body[data-page="home"] .credentials-grid { display: block; }
  body[data-page="home"] .credential-card { display: none; }
  body[data-page="home"] .credential-card.active { display: flex; }
  body[data-page="home"] .credential-profile { height: clamp(310px, 80vw, 490px); }
  body[data-page="home"] .credential-copy { padding: 24px; }
  body[data-page="home"] .credential-copy .client-doctor-name,
  body[data-page="about"] .doctor-card-body .client-doctor-name { font-size: clamp(16px, 4.1vw, 24px); white-space: normal; }
  body[data-page="home"] .credential-copy .doctor-title,
  body[data-page="about"] .doctor-card-body .doctor-title { font-size: 16px; }
  body[data-page="about"] .values-section .values-grid { grid-template-columns: 1fr; gap: 16px; }
  body[data-page="about"] .values-section .values-grid article { padding: 26px; }
  body[data-page="home"] .services-section .split-heading { gap: 18px; }
  body[data-page="home"] .services-section .split-heading > p { font-size: 16px; }
  .explore-treatment-options { margin-bottom: 28px; }
  .home-treatment-heading { padding-top: 28px; }
  .home-treatment-actions { align-items: stretch; flex-direction: column; gap: 12px; }
  .home-treatment-actions a { width: 100%; }
  body[data-page="home"] .story-copy { padding-block: 32px; }
  body[data-page="home"] .home-clinic-info .trust-grid { display: grid; grid-template-columns: 1fr; }
  body[data-page="home"] .home-clinic-info .trust-grid > div { padding: 18px 12px; }
  body[data-page="home"] .home-clinic-info .trust-grid > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .client-footer .footer-heading,
  .client-footer .footer-invitation,
  .client-footer .footer-closing-line,
  .client-footer .footer-grid,
  .client-footer .footer-patient-guide { width: calc(100% - 36px); }
  .client-footer .footer-brand { gap: 13px; }
  .client-footer .footer-brand > img { width: 52px; height: 52px; flex-basis: 52px; }
  .client-footer .footer-brand strong { font-size: 25px; }
  .client-footer .footer-invitation { flex-direction: column; align-items: flex-start; gap: 20px; }
  .client-footer .footer-invitation > a { width: 100%; }
  .client-footer .footer-invitation p { font-size: 16px; }
  .client-footer .footer-patient-guide { grid-template-columns: 1fr; margin-block: 26px 30px; gap: 14px; }
  .client-footer .footer-patient-guide section { display: block; padding: 22px 18px; }
  .client-footer .footer-closing-line { text-align: left; font-size: 17px; }
}
@media (max-width: 360px) {
  body[data-page="home"] .credential-copy { padding: 20px 16px; }
  body[data-page="about"] .doctor-grid .doctor-card-body { padding: 22px 16px; }
  body[data-page="home"] .credential-copy .client-doctor-name,
  body[data-page="about"] .doctor-card-body .client-doctor-name { font-size: 16px; }
}
