/* Shared interiors for practice service pages. Keep the global header and footer untouched. */
.page-services {
  --font-display: "Marcellus Brand", Georgia, serif;
  --font-body: "DM Sans Brand", Arial, sans-serif;
  font-family: var(--font-body);
}
.service-intro, .service-details, .service-invitation { padding-block: clamp(2.25rem, 6vw, 6rem); }
.service-intro__layout, .service-details__layout, .service-invitation__layout {
  width: min(calc(100% - 2 * var(--gutter)), 72rem);
  margin-inline: auto;
  display: grid;
  align-items: start;
  gap: clamp(2rem, 7vw, 7rem);
}
.service-intro__layout {
  grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
  align-items: center;
}
.service-intro h1, .service-details h2, .service-invitation h2 {
  margin: 0;
  color: var(--burgundy);
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -.035em;
  text-wrap: balance;
}
.service-intro h1 { font-size: clamp(2.6rem, 5.1vw, 5.1rem); line-height: 1.05; }
.service-intro h1 .service-compound { white-space: nowrap; }
.service-intro__copy > p {
  max-width: 51ch;
  margin: 1.5rem 0 0;
  font-size: clamp(1.05rem, 1.35vw, 1.22rem);
  line-height: 1.65;
}
.service-intro__links, .service-invitation__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .85rem 1.6rem;
  margin-top: 1.7rem;
}
.service-intro__figure { width: min(100%, 27rem); justify-self: end; margin: 0; }
.service-intro__figure picture { display: block; }
.service-intro__figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 35%;
}
.service-intro__figure figcaption {
  margin-top: .6rem;
  color: var(--muted);
  font-size: .88rem;
  line-height: 1.5;
}
.service-details__layout, .service-invitation__layout {
  grid-template-columns: minmax(0, .76fr) minmax(0, 1.24fr);
}
.service-details h2, .service-invitation h2 { font-size: clamp(2rem, 3.5vw, 3.4rem); line-height: 1.12; }
.service-details__body, .service-invitation__body { max-width: 66ch; min-width: 0; }
.service-details__body p, .service-invitation__body p { margin: 0 0 1em; }
.service-details__body p:last-child, .service-invitation__body p:last-child { margin-bottom: 0; }
.service-details__body h3 { margin: 1.55em 0 .4em; font: 400 clamp(1.3rem, 2vw, 1.7rem)/1.22 var(--font-display); color: var(--burgundy); }
.service-details__body h3:first-child { margin-top: 0; }
.service-details__body a, .service-invitation__body a:not(.button), .service-intro__links a:not(.button) {
  color: var(--burgundy);
  text-decoration: underline;
  text-underline-offset: .22em;
}
.service-invitation__body a { overflow-wrap: anywhere; }
.service-invitation { border-top: 1px solid var(--hairline); }
@media (max-width: 740px) {
  .service-intro__layout, .service-details__layout, .service-invitation__layout { grid-template-columns: minmax(0, 1fr); gap: 1.6rem; }
  .service-intro__figure { width: min(100%, 23rem); justify-self: start; }
  .service-intro__figure img { aspect-ratio: 1.2; }
  .service-intro__copy > p { margin-top: 1rem; }
}

.service-details__photo { display: block; margin-block-start: 1.5rem; max-width: 23rem; }
.service-details__photo img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: center 32%; }

/* Service interiors follow the photo-led Practice and Membership pages. */
.page-services .service-intro { padding-block: clamp(2.5rem, 5vw, 5.5rem); }
.service-intro__layout { width: min(calc(100% - 2 * var(--gutter)), 78rem); grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr); gap: clamp(2rem, 6vw, 6.5rem); }
.service-intro__copy h1 { max-width: 12ch; font-size: clamp(3rem, 5.6vw, 5.65rem); line-height: 1.01; }
.service-intro__figure { width: 100%; max-width: 32rem; }
.service-intro__figure img { aspect-ratio: 1.04; object-position: center 30%; }
.service-intro__figure figcaption { color: inherit; font-size: .82rem; }
.page-business-services .service-intro { background: var(--linen); }
.page-womens-primary-care .service-intro { background: #381c21; color: #fff6e9; }
.page-womens-primary-care .service-intro h1, .page-womens-primary-care .service-intro__copy > p,
.page-womens-primary-care .service-intro__links a:not(.button) { color: #fff6e9; }
.page-womens-primary-care .service-intro .button { color: #41071c; background: #f9f5ee; border-color: #f9f5ee; }
.page-womens-primary-care .service-intro .button:hover { background: #e8d8c4; }
.page-womens-primary-care .service-intro__figure img { object-position: center 27%; }
.page-business-services .service-intro__figure img { object-position: center 37%; }
.care-contents { background: var(--ivory); border-block: 1px solid var(--hairline); }
.care-contents > div { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; column-gap: 1.5rem; width: min(calc(100% - 2 * var(--gutter)),72rem); margin-inline: auto; }
.care-contents a { padding-block: 1.05rem; color: var(--burgundy); text-decoration: underline; text-decoration-color: transparent; text-underline-offset: .28em; font: 500 .95rem/1.45 var(--font-body); }
.care-contents a:hover, .care-contents a:focus-visible { text-decoration-color: currentColor; }
.service-details__layout { align-items: start; }
.service-details__body h3 { border-top: 1px solid var(--hairline); padding-top: 1.05rem; margin-top: 1.25rem; }
.service-details__body h3:first-child { border: 0; padding-top: 0; }
.care-story { background: #410e22; color: #fff7ef; padding-block: clamp(3rem, 6vw, 6.5rem); }
.page-womens-primary-care .care-story { background: var(--linen); color: var(--burgundy); }
.care-story__inner, .care-faq__inner { width: min(calc(100% - 2 * var(--gutter)), 72rem); margin-inline: auto; display: grid; align-items: center; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(2rem, 7vw, 7rem); }
.care-story figure { margin: 0; width: 100%; }
.care-story picture, .care-story img { display: block; width: 100%; }
.care-story img { height: auto; aspect-ratio: 1.08; object-fit: cover; object-position: center 33%; }
.page-pediatric-care .care-story img { object-position: center 39%; }
.care-story__copy { max-width: 56ch; }
.care-story__copy h2, .care-faq__inner h2 { margin: 0 0 1.25rem; font: 400 clamp(2.35rem, 4.25vw, 4rem)/1.08 "Marcellus Brand", Georgia, serif; color: inherit; letter-spacing: -.035em; text-wrap: balance; }
.care-story__copy p { margin: 0 0 1rem; color: inherit; line-height: 1.65; }
.care-story__link, .care-faq__questions a { color: inherit; text-decoration: underline; text-underline-offset: .24em; }
.care-story__link { display: inline-block; margin-top: .4rem; font-weight: 500; }
.care-faq { padding-block: clamp(3rem, 6.5vw, 6.5rem); background: var(--ivory); color: var(--burgundy); }
.care-faq__inner { align-items: start; grid-template-columns: minmax(0,.78fr) minmax(0,1.22fr); }
.care-faq__questions { border-bottom: 1px solid var(--hairline); }
.care-faq__questions details { border-top: 1px solid var(--hairline); }
.care-faq__questions summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; cursor: pointer; padding: 1.15rem .15rem; font: 400 clamp(1.18rem, 1.65vw, 1.55rem)/1.4 "Marcellus Brand", Georgia, serif; color: var(--burgundy); list-style: none; }
.care-faq__questions summary::-webkit-details-marker { display: none; }
.care-faq__questions summary::after { content: ''; width: .5rem; height: .5rem; border: solid currentColor; border-width: 0 1px 1px 0; transform: rotate(45deg); flex: none; margin-right: .4rem; }
.care-faq__questions details[open] summary::after { transform: rotate(225deg); }
.care-faq__questions details > div { padding: 0 2rem 1.25rem .15rem; max-width: 65ch; color: var(--ink); }
.care-faq__questions p { margin: 0; line-height: 1.65; }
.care-faq summary:focus-visible, .care-story a:focus-visible, .care-contents a:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
.page-services .service-invitation { background: var(--linen); }
.page-business-services .service-invitation {
  padding-block: clamp(2rem, 4vw, 3.5rem);
  background: var(--ivory);
}
.page-business-services .service-invitation__layout {
  align-items: center;
  gap: 1.25rem 3rem;
}
.page-business-services .service-invitation__body h2 { margin-bottom: .65em; }
.page-business-services .service-invitation__layout > .button { justify-self: start; }
@media (min-width: 741px) {
  .page-business-services .service-invitation__layout {
    grid-template-columns: minmax(0, 1fr) auto;
  }
}
.page-services main :is(h2,h3)[id], .care-story h2[id], .care-faq h2[id] { scroll-margin-top: 8rem; }
@media (max-width: 740px) {
  .service-intro__layout, .care-story__inner, .care-faq__inner { grid-template-columns: minmax(0,1fr); gap: 1.5rem; }
  .service-intro__copy h1 { max-width: none; font-size: clamp(2.55rem,9.3vw,3.8rem); }
  .service-intro__figure { max-width: none; }
  .service-intro__figure img { aspect-ratio: 1.35; }
  .care-contents > div { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 1rem; padding: .45rem 0; }
  .care-contents a { padding: .55rem 0; }
  .care-story__copy h2,.care-faq__inner h2 { font-size: clamp(2rem,7.3vw,3.1rem); }
  .care-story img { aspect-ratio: 1.38; }
  .care-faq__inner h2 { margin-bottom: 0; }
}
.page-womens-primary-care .care-story img { object-position: center 70%; }

/* Lake Norman service interiors share the colors and type of the live practice. */
.page-services main, .page-practice .practice-hero__copy, .page-practice .care-faq,
.page-membership .adult-introduction { text-align: center; }
.service-intro__copy > :is(h1,p), .care-story__copy, .service-details__body,
.service-invitation__body, .service-details__photo, .page-practice .practice-hero__intro { margin-inline: auto; }
.service-intro__links, .service-invitation__links, .care-contents > div { justify-content: center; }
.service-intro__figure, .page-business-services .service-invitation__layout > .button { justify-self: center; }
.page-services .service-invitation__layout, .service-details__layout, .care-faq__inner {
  grid-template-columns: minmax(0, 1fr); justify-items: center; gap: clamp(1.2rem, 3vw, 2rem);
}
.care-faq__questions { width: min(100%, 64ch); }
.care-faq__questions summary { position: relative; justify-content: center; padding-inline: 1.7rem; text-align: center; }
.care-faq__questions summary::after { position: absolute; right: .3rem; }
.care-faq__questions details > div { margin-inline: auto; padding-inline: 1rem; }
.page-womens-primary-care .service-intro, .page-pediatric-care .care-story {
  background: var(--burgundy); color: var(--ivory);
}
.page-womens-primary-care .service-intro :is(h1,p), .page-womens-primary-care .service-intro__links a:not(.button) { color: var(--ivory); }
.page-womens-primary-care .service-intro .button { color: var(--burgundy); background: var(--ivory); border-color: var(--ivory); }
.page-services .service-intro__copy .service-price { font-weight: 600; margin-top: 1rem; }
.service-price + .service-intro__links { margin-top: .7rem; }
.page-membership .adult-introduction { scroll-margin-top: 9rem; max-width: 58ch; margin: 0 auto clamp(2rem,5vw,4rem); }
.page-membership .adult-introduction h3 { color: var(--burgundy); font: 400 clamp(1.8rem,3vw,2.6rem)/1.15 var(--font-display); }
.page-membership .adult-introduction p { margin: .8rem auto 1.2rem; }

/* The homepage pairs an edge-to-edge clinical portrait with a centered ivory panel. */
main .landing-entry {
  display: grid; grid-template-columns: minmax(0,54fr) minmax(0,46fr);
  align-items: stretch; padding: 0; background: var(--ivory); color: var(--ink);
}
#adult-membership { scroll-margin-top: 6.5rem; }
.landing-entry__photo { display: grid; grid-template-rows: minmax(0,1fr) auto; margin: 0; background: var(--burgundy); }
.landing-entry__photo picture { display: block; position: relative; min-height: clamp(32rem,43vw,48rem); }
.landing-entry__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 37%; }
.landing-entry__photo figcaption { padding: .8rem 1.2rem; text-align: center; background: var(--burgundy); color: var(--ivory); font: 500 .73rem/1.45 var(--font-body); letter-spacing: .12em; text-transform: uppercase; }
.landing-entry__copy { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; padding: clamp(2.4rem,4vw,5rem); text-align: center; }
.landing-entry__copy .eyebrow { margin: 0 0 1.15rem; color: var(--burgundy); }
.landing-entry .landing-entry__copy :is(h1,h2) { margin: 0; max-width: 13ch; text-wrap: balance; font: 400 clamp(2.7rem,5.5vw,5.6rem)/1.08 var(--font-display); letter-spacing: -.025em; color: var(--burgundy); }
.landing-entry__subhead { max-width: 30ch; margin: 1.35rem 0 0; font: 400 clamp(1.15rem,1.7vw,1.65rem)/1.45 var(--font-body); }
.landing-entry__price { margin: 1.6rem 0 .8rem; font: 500 1rem/1.5 var(--font-body); }
.landing-entry__copy .text-link { margin-top: 1rem; }
@media(max-width:740px) {
  main .landing-entry { grid-template-columns: minmax(0,1fr); }
  .landing-entry__photo picture { min-height: 0; height: clamp(10rem,47vw,18rem); }
  .landing-entry__photo img { object-position: center 35%; }
  .landing-entry__photo figcaption { padding: .42rem .8rem; font-size: .66rem; }
  .landing-entry__copy { padding: 1.75rem var(--gutter) 2.3rem; }
  .landing-entry__copy .eyebrow { margin-bottom: .65rem; }
  .landing-entry__subhead { margin-top: .75rem; }
  .landing-entry__price { margin-top: 1rem; }
  #adult-membership { scroll-margin-top: 5rem; }
}
.page-services .service-intro.landing-entry { padding-block: 0; }
/* The root already reserves space for the sticky navigation on anchor visits. */
#adult-membership.landing-entry { scroll-margin-top: 0; }
#adult-membership .landing-entry__photo img { object-position: center 22%; }
@media (max-width:740px) {
  #adult-membership .landing-entry__photo img { object-position: center 21%; }
}

/* Women’s care and business inquiries use the same opening spread as pediatrics. */
.service-landing .landing-entry__copy h1 { max-width: 16ch; }
.service-landing .landing-entry__subhead { max-width: 34ch; margin-bottom: 1.45rem; }
.page-womens-primary-care .service-landing .landing-entry__photo img { object-position: 50% 20%; }
.page-business-services .service-landing .landing-entry__photo img { object-position: 50% 28%; }
.page-business-services .service-invitation__layout > .button { justify-self: center; }
@media (max-width: 740px) {
  .service-landing .landing-entry__copy h1 { font-size: clamp(2.35rem, 9.5vw, 3.5rem); }
  .service-landing .landing-entry__subhead { margin-bottom: 1.15rem; }
  .page-womens-primary-care .service-landing .landing-entry__photo img { object-position: 50% 15%; }
  .page-business-services .service-landing .landing-entry__photo img { object-position: 50% 24%; }
}
