/* V28 — targeted client revisions. Existing typography, themes and copy remain. */

/* Home: centred copy and a proportionate, uncropped team photograph. */
html body.client-update-v27[data-page="home"] .hero-grid {
  align-items: center; gap: clamp(24px, 3vw, 44px);
}
html body.client-update-v27[data-page="home"] .hero-copy { text-align: center; }
html body.client-update-v27[data-page="home"] .hero-copy > :is(.hero-tagline,.hero-specialty,.hero-introduction,.hero-experience,.hero-actions) {
  margin-inline: auto; justify-content: center;
}
html body.client-update-v27[data-page="home"] .hero-section .hero-copy > .eyebrow { justify-content: center; }
html body.client-update-v27[data-page="home"] .hero-copy > .hero-introduction {
  width: 100%; max-width: 60ch; text-align: center; margin-block: 0 22px;
}
html body.client-update-v27[data-page="home"] .hero-introduction h2 { font-size: clamp(25px,2.3vw,32px); line-height: 1.25; }
html body.client-update-v27[data-page="home"] .hero-copy > .hero-experience { width: fit-content; max-width: 100%; margin-bottom: 18px; }
html body.client-update-v27[data-page="home"] .hero-visual { width: 100%; max-width: 580px; margin-inline: auto; }
html body.client-update-v27[data-page="home"] .hero-photo-frame {
  width: 100%; height: auto; min-height: 0; aspect-ratio: 1122 / 1180;
  border-radius: clamp(24px,5vw,76px) clamp(24px,5vw,76px) 22px 22px;
}
html body.client-update-v27[data-page="home"] .hero-photo-frame > img { height: 100%; object-fit: contain; object-position: center; }
html body.client-update-v27[data-page="home"] .home-specialists-grid { display: block; }
html body.client-update-v27[data-page="home"] .home-specialists-copy { width: 100%; max-width: 780px; margin-inline: auto; text-align: center; }
html body.client-update-v27[data-page="home"] #home-specialists-heading { font-size: clamp(20px,6cqi,44px); line-height: 1.2; }
html body.client-update-v27[data-page="home"] .home-team-intro { max-width: 72ch; margin-inline: auto; }
html body.client-update-v27[data-page="home"] .clinic-story .story-grid { align-items: center; }
html body.client-update-v27[data-page="home"] .clinic-story .story-photo {
  height: auto; min-height: 0; aspect-ratio: 1367 / 1151; width: 100%; margin-inline: 0;
}
html body.client-update-v27[data-page="home"] .clinic-story .story-photo img { width: 100%; height: 100%; min-height: 0; object-fit: contain; }

/* About: a centred introduction, then two aligned specialist columns. */
html body.client-update-v27[data-page="about"] .about-hero .inner-hero-grid {
  display: block; text-align: center; padding: clamp(24px,3.5vw,48px);
}
html body.client-update-v27[data-page="about"] .about-hero h1 { max-width: 22ch; margin-inline: auto; }
html body.client-update-v27[data-page="about"] .about-intro { max-width: 72ch; margin-inline: auto; }
html body.client-update-v27[data-page="about"] .about-hero-actions { justify-content: center; }
html body.client-update-v27[data-page="about"] .about-hero-actions a { flex: 0 1 auto; }
html body.client-update-v27[data-page="about"] .doctors-section .split-heading {
  display: grid; grid-template-columns: minmax(0,1.15fr) minmax(0,1fr);
  align-items: center; gap: clamp(24px,3vw,42px);
}
html body.client-update-v27[data-page="about"] .doctors-section .split-heading > .specialist-intro-note {
  width: 100%; max-width: none; margin: 0; padding: clamp(20px,2.5vw,30px);
  border: 1px solid var(--line); border-left: 3px solid var(--blue);
  border-radius: 16px; background: var(--soft-surface); color: var(--ink);
  font-size: 17px; line-height: 1.75;
}
html body.client-update-v27[data-page="about"] .doctor-grid { align-items: stretch; }
html body.client-update-v27[data-page="about"] .doctor-grid .doctor-card { display: flex; flex-direction: column; height: 100%; align-self: stretch; }
html body.client-update-v27[data-page="about"] .doctor-grid .doctor-card[hidden] { display: none; }
html body.client-update-v27[data-page="about"] .doctor-grid .doctor-portrait {
  display: flex; flex-direction: column; align-items: center;
  width: 100%; height: auto; min-height: 0; aspect-ratio: auto; padding: 0;
  background: var(--soft-surface);
}
html body.client-update-v27[data-page="about"] .doctor-grid .doctor-portrait img {
  display: block; order: 0; width: 100%; height: clamp(350px,38vw,490px);
  min-height: 0; object-fit: contain; object-position: center; transform: none;
}
html body.client-update-v27[data-page="about"] .doctor-grid .doctor-portrait .profile-experience {
  position: static; order: 1; margin: 12px; align-self: center;
}
html body.client-update-v27[data-page="about"] .doctor-grid .doctor-card-body { flex: 1; display: flex; flex-direction: column; min-width: 0; }
html body.client-update-v27[data-page="about"] .doctor-grid .doctor-cta { margin-top: auto; }
/* Fixed heading rows keep all three descriptions on the same baseline. */
html body.client-update-v27[data-page="about"] .values-section .values-grid { align-items: stretch; }
html body.client-update-v27[data-page="about"] .values-section .values-grid article {
  display: grid; grid-template-rows: 52px minmax(2.6em,auto) 1fr;
  gap: 18px; align-content: start; justify-content: stretch;
}
html body.client-update-v27[data-page="about"] .values-section .values-grid article > svg { width: 52px; height: 52px; margin: 0; }
html body.client-update-v27[data-page="about"] .values-section .values-grid h3 {
  font-size: clamp(22px,2vw,27px); line-height: 1.3; min-height: 2.6em; margin: 0; align-self: start;
}
html body.client-update-v27[data-page="about"] .values-section .values-grid p { margin: 0; align-self: start; }

/* Treatments: two clear introductory points and the exact patient note. */
html body.client-update-v27[data-page="treatments"] .treatment-intro-points {
  display: grid; gap: 12px; list-style: none; max-width: 760px;
  margin: 22px auto; padding: 0; text-align: center;
}
html body.client-update-v27[data-page="treatments"] .treatment-intro-points > li { font-size: 16px; line-height: 1.65; }
html body.client-update-v27[data-page="treatments"] .treatment-intro-points > .treatment-assessment-note {
  padding: 16px 22px; border: 1px solid var(--line); border-radius: 14px;
  background: var(--soft-surface); font-size: 18px; line-height: 1.65;
}
html body.client-update-v27[data-page="treatments"] .treatment-bento-intro {
  display: block; text-align: center; margin-bottom: 24px; container-type: inline-size;
}
html body.client-update-v27[data-page="treatments"] #treatment-bento-heading {
  max-width: none; margin: 12px 0 0; font-size: clamp(20px,5.3cqi,48px); line-height: 1.2;
}
html body.client-update-v27[data-page="treatments"] #treatment-bento-heading > span { display: block; white-space: nowrap; }
html body.client-update-v27[data-page="treatments"] .patient-information-note {
  --text-main: #a32436; color: #a32436; background: var(--soft-surface);
  padding: 20px; margin-top: 22px; border: 1px solid var(--line);
  border-left: 3px solid currentColor; border-radius: 14px;
  font-size: 16px; line-height: 1.7; font-style: italic;
}
html body.client-update-v27[data-page="treatments"] .patient-information-note > strong { color: inherit; font-size: 17px; }
html body.client-update-v27[data-page="treatments"] .patient-information-note ul { margin: 10px 0 0; padding-left: 20px; list-style: disc; }
html body.client-update-v27[data-page="treatments"] .patient-information-note li + li { margin-top: 10px; }
html[data-theme="beige"] body.client-update-v27[data-page="treatments"] .patient-information-note { --text-main: #8a302d; color: #8a302d; }

/* Contact: a clear title with parallel actions and larger practical details. */
html body[data-page="contact"] .contact-hero-grid {
  grid-template-columns: minmax(0,1fr) minmax(0,1fr); align-items: center; gap: clamp(28px,4vw,60px);
}
html body[data-page="contact"] .contact-hero h1 { font-size: clamp(38px,4.4vw,62px); max-width: 16ch; line-height: 1.12; margin: 16px 0 26px; }
html body[data-page="contact"] .contact-hero .hero-actions { display: flex; flex-wrap: nowrap; align-items: stretch; gap: 12px; }
html body[data-page="contact"] .contact-hero .hero-actions a { flex: 0 1 auto; min-width: 0; min-height: 50px; padding: 14px 18px; font-size: 15px; justify-content: center; text-align: center; }
html body[data-page="contact"] .contact-hero .contact-summary { gap: 14px; }
html body[data-page="contact"] .contact-hero .contact-summary > div { align-items: center; gap: 18px; padding: 24px; border-radius: 16px; }
html body[data-page="contact"] .contact-hero .contact-summary > div > svg { width: 27px; height: 27px; }
html body[data-page="contact"] .contact-hero .contact-summary span { min-width: 0; gap: 7px; }
html body[data-page="contact"] .contact-hero .contact-summary strong { font-size: 19px; line-height: 1.4; }
html body[data-page="contact"] .contact-hero .contact-summary small { font-size: 17px; line-height: 1.65; }

/* Reviews: a stationary, clipped stone backdrop; only the review rail moves. */
html body[data-page="home"] section.reviews-home {
  position: relative; isolation: isolate; clip-path: inset(0); background: transparent;
  animation: none; transform: none;
}
html body[data-page="home"] section.reviews-home::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: #f4f2ec url('../images/reviews-ivory-marble.webp') center / cover no-repeat;
  animation: none; transform: none;
}
html body[data-page="home"] .reviews-home :is(.reviews-intro,.review-card,.reviews-actions) { animation: none; }
html body[data-page="home"] .reviews-carousel > [data-slot="carousel-content"] {
  overflow-x: auto; overflow-y: hidden; scroll-behavior: auto; scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
html body[data-page="home"] .reviews-carousel > [data-slot="carousel-content"]::-webkit-scrollbar { display: none; }
html body[data-page="home"] .reviews-carousel > [data-slot="carousel-content"]:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; border-radius: 12px; }
html body[data-page="home"] .reviews-carousel > [data-slot="carousel-content"].review-moving { scroll-snap-type: none; }
html body[data-page="home"] .reviews-carousel [data-slot="carousel-content"] > div {
  display: flex; flex-wrap: nowrap; gap: 16px; margin: 0; padding: 0;
}
html body[data-page="home"] .reviews-carousel [data-slot="carousel-item"] {
  flex: 0 0 100%; min-width: 0; padding-inline: 0;
  scroll-snap-align: start; scroll-snap-stop: normal;
}
@media (min-width: 768px) {
  html body[data-page="home"] .reviews-carousel [data-slot="carousel-item"] { flex-basis: calc((100% - 16px) / 2); }
}
@media (min-width: 1280px) {
  html body[data-page="home"] .reviews-carousel [data-slot="carousel-item"] { flex-basis: calc((100% - 32px) / 3); }
}
@media (max-width: 1100px) and (min-width: 821px) {
  html body.client-update-v27[data-page="about"] .doctors-section .split-heading h2 { font-size: 34px; }
  html body[data-page="contact"] .contact-hero .hero-actions a { font-size: 14px; padding: 12px; }
}
@media (max-width: 820px) {
  html body.client-update-v27[data-page="home"] .hero-grid { gap: 0; }
  html body.client-update-v27[data-page="home"] .hero-copy > .hero-specialty { justify-content: center; }
  html body.client-update-v27[data-page="home"] .hero-introduction h2 { font-size: clamp(25px,6.3vw,30px); }
  html body.client-update-v27[data-page="home"] .hero-copy > .hero-introduction { margin-bottom: 16px; }
  html body.client-update-v27[data-page="home"] .hero-copy > .hero-experience { width: 100%; margin-bottom: 0; }
  html body.client-update-v27[data-page="home"] .hero-visual { max-width: 480px; }
  html body.client-update-v27[data-page="home"] .hero-photo-frame { border-radius: 22px; }
  html body.client-update-v27[data-page="about"] .about-hero .inner-hero-grid { padding: 22px 18px; }
  html body.client-update-v27[data-page="about"] .about-hero-actions a { flex: 1 1 120px; }
  html body.client-update-v27[data-page="about"] .doctors-section .split-heading { grid-template-columns: minmax(0,1fr); gap: 18px; }
  html body.client-update-v27[data-page="about"] .doctors-section .split-heading > .specialist-intro-note { font-size: 15px; padding: 18px; }
  html body.client-update-v27[data-page="about"] .doctor-grid .doctor-card { height: auto; }
  html body.client-update-v27[data-page="about"] .doctor-grid .doctor-portrait img { height: auto; max-height: 500px; aspect-ratio: 4 / 5; }
  html body.client-update-v27[data-page="about"] .values-section .values-grid article { grid-template-rows: 48px auto auto; gap: 14px; }
  html body.client-update-v27[data-page="about"] .values-section .values-grid h3 { min-height: 0; }
  html body.client-update-v27[data-page="about"] .values-section .values-grid article > svg { width: 48px; height: 48px; }
  html body.client-update-v27[data-page="treatments"] .treatment-intro-points { margin-block: 18px; gap: 10px; }
  html body.client-update-v27[data-page="treatments"] .treatment-intro-points > li { font-size: 15px; }
  html body.client-update-v27[data-page="treatments"] .treatment-intro-points > .treatment-assessment-note { font-size: 16px; padding: 14px 16px; }
  html body.client-update-v27[data-page="treatments"] #treatment-bento-heading { font-size: clamp(18px,6.2cqi,34px); }
  html body.client-update-v27[data-page="treatments"] .patient-information-note { padding: 16px; font-size: 15px; }
  html body[data-page="contact"] .contact-hero-grid { grid-template-columns: minmax(0,1fr); gap: 26px; }
  html body[data-page="contact"] .contact-hero h1 { font-size: clamp(35px,8vw,48px); max-width: 20ch; margin-bottom: 22px; }
  html body[data-page="contact"] .contact-hero .hero-actions { gap: 8px; }
  html body[data-page="contact"] .contact-hero .hero-actions a { flex: 1 1 auto; padding: 12px 10px; font-size: 13px; gap: 7px; white-space: normal; }
  html body[data-page="contact"] .contact-hero .hero-actions a > :is(svg,img) { flex-shrink: 0; width: 20px; height: 20px; }
  html body[data-page="contact"] .contact-hero .contact-summary > div { padding: 20px; gap: 14px; }
  html body[data-page="contact"] .contact-hero .contact-summary strong { font-size: 18px; }
  html body[data-page="contact"] .contact-hero .contact-summary small { font-size: 16px; }
}
