/* Service page (/services/<slug>, service.php). Loads before modern.css, so every rule here is scoped with
   .page-service or a section class of this page. Tokens and components come from modern.css (brief sections 3 and 8);
   this file only lays out the page's own blocks. Light theme only. */

/* ---------- 1. Header ----------
   A split header: the text in columns 1 to 6, the photo card (or the animation stage) in 7 to 12, both centred on the
   row. The headline is set a step smaller than the home hero's, since a service name plus its accent runs long. */
.page-service .pagehead--service h1 { font-size: clamp(2.125rem, 1.25rem + 2.4vw, 3.5rem); max-width: 19ch; }
.page-service .pagehead__actions { gap: 12px; }
/* The accent phrase of the h1 and of a paired section's h2 starts its own line ("Dental sealants," then "a thin shield
   for back teeth."), balanced if it wraps, so a lone "a" is never left at the end of the first line. */
.page-service .svc-accent { display: block; text-wrap: balance; }
.page-service .pagehead__chip { margin-top: 22px; }
.page-service .pagehead--service .pagehead__visual { margin-top: 44px; }
@media (min-width: 1024px) {
  .page-service .pagehead--service .pagehead__text { grid-column: 1 / span 6; }
  .page-service .pagehead--service .pagehead__visual { grid-column: 7 / span 6; margin-top: 0; padding-left: 40px; }
  .page-service .pagehead--service .anim-stage { max-width: 500px; margin-right: 0; }
}
@media (max-width: 479.98px) {
  .page-service .pagehead__actions .btn { width: 100%; }
}
/* A page without a photo has the animation stage as its hero visual: the rating card straddles the stage's bottom
   edge, where the stage is empty below the artwork, instead of a corner where it would cover part of it. */
.page-service .pagehead--service .anim-stage { margin-bottom: 32px; }
.page-service .pagehead--service .anim-stage > .float-card { top: auto; right: auto; bottom: -30px; left: 20px; }
@media (min-width: 1024px) { .page-service .pagehead--service .anim-stage > .float-card { left: -28px; } }
/* Below 1024 the stage would otherwise fill the whole column: a 700 px tooth on a tablet. */
@media (max-width: 1023.98px) { .page-service .pagehead--service .anim-stage { max-width: 520px; margin-inline: auto; } }
/* A page with a photo: the rating card sits on the photo's bottom right edge, opposite the animation disc. The stock
   photos keep faces and the subject high in the frame, so a card in the top corner covered a face (family dentistry)
   or the subject itself (the implant's crown) at some widths. Phones get a slimmer card so it clears the disc. */
.page-service .photo-card .float-card--tr { top: auto; right: -6px; bottom: -30px; }
@media (max-width: 639.98px) {
  .page-service .photo-card .float-card { gap: 10px; max-width: none; padding: 8px 14px 8px 8px; }
  .page-service .photo-card .float-card__icon { width: 40px; height: 40px; font-size: 1rem; }
  .page-service .photo-card .float-card__value { font-size: 0.875rem; white-space: nowrap; }
  .page-service .photo-card__disc { left: 10px; }
}
@media (max-width: 399.98px) { .page-service .photo-card__disc { width: 100px; height: 100px; bottom: -40px; } }
@media (min-width: 640px) { .page-service .photo-card .float-card--tr { right: 20px; bottom: -32px; } }
@media (min-width: 1024px) { .page-service .photo-card .float-card--tr { right: -36px; bottom: 32px; } }
/* The paired service's name in the "Also on this page" chip stays on one line when the chip wraps. */
.page-service .pagehead__chip b { white-space: nowrap; }
/* Tablets: three glance cards in a row leave each value about 140 px, so the icon goes above the text. */
@media (min-width: 768px) and (max-width: 1023.98px) {
  .page-service .glance-band .glance__item { flex-direction: column; align-items: flex-start; gap: 12px; padding: 20px 22px; }
  .page-service .glance-band .glance__icon { width: 48px; height: 48px; }
}

/* ---------- 3. What it is ---------- */
.svc-what__text .head { margin-bottom: 28px; }
.svc-intro { display: grid; gap: 18px; max-width: 62ch; }
.svc-intro p { color: var(--muted); text-wrap: pretty; }
.svc-intro .svc-intro__lead { font-size: 1.125rem; line-height: 1.6; color: var(--text); }
@media (min-width: 768px) { .svc-intro .svc-intro__lead { font-size: 1.25rem; } }
.svc-what__visual { max-width: 560px; width: 100%; margin-inline: auto; }
/* Phones: the orbit's icon nodes would touch the panel edge, and beside a "When it may help" card (a page without a
   photo) the ring sits wholly behind the taller card, so its padding was only an empty band above and below. */
@media (max-width: 639.98px) {
  .svc-what__visual { padding-inline: 8px; }
  .svc-what .orbit-photo--card { padding: 0; }
  .svc-what .orbit-photo--card .orbit-photo__ring { display: none; }
}
@media (min-width: 1024px) { .page-service .svc-what__split { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); } }
.svc-what__signs { margin-top: 56px; }
@media (min-width: 1024px) { .svc-what__signs { margin-top: 88px; } }

/* "When it may help": a tinted card with an icon disc, the title and the check list (two columns when it is long). */
.svc-signs {
  position: relative; isolation: isolate; overflow: hidden;
  padding: 32px 24px; border-radius: var(--r-lg);
  background: linear-gradient(145deg, var(--tint) 0%, #fff 70%);
  box-shadow: inset 0 0 0 1px rgba(214, 236, 246, 0.9);
}
.svc-signs::after {
  content: ""; position: absolute; z-index: -1; width: 360px; height: 360px; right: -230px; top: -250px; border-radius: 50%;
  border: 1px solid rgba(14, 42, 58, 0.1); pointer-events: none;
}
.svc-signs__icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--mint); color: var(--ink); margin-bottom: 18px; }
.svc-signs__icon .icon { width: 24px; height: 24px; }
.svc-signs__title { font-size: clamp(1.375rem, 1.1rem + 0.9vw, 1.875rem); font-weight: 600; line-height: 1.2; letter-spacing: -0.015em; margin-bottom: 24px; text-wrap: balance; }
@media (min-width: 768px) { .svc-signs { padding: 44px 48px; } }
@media (min-width: 1024px) {
  /* The icon and title sit together, centred against the list (the outer 1fr rows take the spare height). */
  .svc-what__signs .svc-signs { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 2fr); grid-template-rows: 1fr auto auto 1fr; column-gap: 56px; align-items: start; padding: 56px; }
  .svc-what__signs .svc-signs__icon { grid-column: 1; grid-row: 2; }
  .svc-what__signs .svc-signs__title { grid-column: 1; grid-row: 3; margin-bottom: 0; }
  .svc-what__signs .check-list { grid-column: 2; grid-row: 1 / -1; align-self: center; }
}
/* Beside the intro (a page without a photo) the card sits on the orbit rings: white, with a shadow. */
.orbit-photo--card .svc-signs { background: #fff; box-shadow: var(--shadow-lg); }
.orbit-photo--card .svc-signs .check-list { grid-template-columns: 1fr; }

/* ---------- 4. How it works ---------- */
.svc-how .head--split .lede { max-width: 46ch; }
/* Five steps in one row (TMJ) leave about 120 px of text per card at 1024; tighter gaps and padding give it room. */
@media (min-width: 1024px) and (max-width: 1279.98px) {
  .page-service .steps:has(> li:nth-child(5):last-child) { --steps-gap: 14px; }
  .page-service .steps:has(> li:nth-child(5):last-child) .step { padding: 22px 16px 24px; }
}

/* ---------- 5. Afterwards, and the call card ---------- */
.svc-after__grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
.svc-after__main { padding: 36px 24px; border-radius: var(--r-lg); background: var(--offwhite); box-shadow: var(--shadow-sm); }
.svc-after__main .tag + h2 { margin-top: 18px; }
.svc-after__main h2 { margin-bottom: 28px; text-wrap: pretty; }
.svc-call {
  position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
  padding: 36px 24px; border-radius: var(--r-lg); color: var(--on-ink);
  background: linear-gradient(150deg, var(--ink-2) 0%, var(--ink) 55%, var(--ink-3) 100%); box-shadow: var(--shadow-lg);
}
.svc-call::before { content: ""; position: absolute; z-index: -1; width: 420px; height: 420px; right: -200px; top: -220px; border-radius: 50%; background: radial-gradient(closest-side, rgba(1, 171, 238, 0.34), rgba(1, 171, 238, 0)); }
.svc-call__orbit { position: absolute; z-index: -1; width: 380px; height: 380px; right: -170px; bottom: -200px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.12); pointer-events: none; }
.svc-call__orbit::after { content: ""; position: absolute; left: 50%; top: -5px; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 5px rgba(1, 171, 238, 0.2); }
.svc-call__label { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: var(--on-ink-accent); }
.svc-call__phone { display: inline-flex; align-items: center; min-height: 48px; font-family: var(--display); font-size: clamp(1.875rem, 1.3rem + 1.6vw, 2.5rem); font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; color: #fff; text-decoration: none; white-space: nowrap; }
.svc-call__phone:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.svc-call__hours { display: grid; gap: 2px; margin-top: 6px; font-size: 0.9375rem; color: var(--on-ink-muted); }
.svc-call__status { display: inline-flex; align-items: center; gap: 8px; margin: 6px 0 22px; font-size: 0.9375rem; font-weight: 650; color: #fff; }
.svc-call__status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px rgba(1, 171, 238, 0.22); }
.svc-call .btn { margin-top: auto; }
.svc-call :focus-visible { outline-color: #fff; }
@media (min-width: 768px) { .svc-after__main, .svc-call { padding: 48px; } }
@media (min-width: 1024px) {
  .svc-after__grid { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 24px; }
  .svc-after__main { padding: 56px; }
  .svc-call { padding: 48px 44px; }
}
@media (max-width: 479.98px) { .svc-call .btn { width: 100%; } }

/* ---------- 6. A paired service ---------- */
.svc-pair__kicker { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px; font-size: 0.875rem; font-weight: 650; color: var(--accent); }
.svc-pair__kicker .icon { width: 16px; height: 16px; }
.svc-pair__text .tag + h2 { margin-top: 18px; }
.svc-pair__text h2 { max-width: 20ch; }
.svc-pair__text .lede { margin-top: 18px; }
.svc-pair__text .glance { margin-top: 28px; }
/* The paired service's glance facts as an even row of three tiles (pills wrapped two and one), stacked on phones. */
.svc-pair .glance--inline { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.svc-pair .glance--inline .glance__item { border-radius: var(--r-card); }
@media (min-width: 640px) { .svc-pair .glance--inline { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* Desktop: the text column holds three tiles of about 200 px, so the icon sits above the label and value. */
@media (min-width: 1024px) {
  .svc-pair .glance--inline .glance__item { flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px 16px; }
}
.svc-pair__visual { width: 100%; max-width: 440px; margin-inline: auto; }
.svc-pair__visual .anim-stage { max-width: none; }
.svc-pair__body { display: grid; grid-template-columns: 1fr; gap: 32px; margin-top: 56px; }
.svc-pair__signs .svc-signs { background: #fff; box-shadow: var(--shadow); }
.svc-pair__steps { margin-top: 64px; }
.svc-pair__h3 { font-size: clamp(1.5rem, 1.15rem + 1.1vw, 2.125rem); font-weight: 600; letter-spacing: -0.015em; line-height: 1.15; margin-bottom: 32px; }
.svc-pair__h3 em { font-family: var(--accent-font); font-style: italic; font-weight: 400; }
.svc-pair__after { margin-top: 56px; padding: 32px 24px; border-radius: var(--r-lg); background: rgba(255, 255, 255, 0.78); box-shadow: var(--shadow-sm); }
.svc-pair__after .svc-pair__h3 { margin-bottom: 22px; }
.svc-pair .steps { --steps-bg: #EAF2F7; }
@media (min-width: 768px) { .svc-pair__after { padding: 44px 48px; } }
@media (min-width: 1024px) {
  .page-service .svc-pair__top { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); }
  .svc-pair__body { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; margin-top: 80px; }
  /* Half the row is too narrow for two columns of checks (items broke into four and five lines at 1024). */
  .svc-pair__signs .check-list--2 { grid-template-columns: minmax(0, 1fr); }
  .svc-pair__steps { margin-top: 88px; }
}

/* ---------- 7. Reviews ---------- */
.svc-reviews__rating { display: grid; justify-items: start; gap: 14px; }
@media (min-width: 1024px) { .svc-reviews__rating { justify-items: end; } }
.svc-reviews .review-card__text { font-size: 1rem; }
/* The rating disc kept its size only while the pill had room; on phones flex squeezed it narrower than "4.9". */
.svc-reviews .rating-pill__num { flex: none; }
.svc-reviews .rating-pill__text b { text-wrap: balance; }
/* Two reviews of its own (emergency care): the Google rating takes the third place as a glass stat card on the band. */
.svc-rating-card {
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 12px;
  padding: 32px 28px; border-radius: var(--r-card); background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.14);
}
.svc-rating-card__num { font-family: var(--display); font-size: clamp(3rem, 2.4rem + 1.8vw, 4.25rem); font-weight: 600; line-height: 1; letter-spacing: -0.03em; color: #fff; }
.svc-rating-card .stars { color: var(--star); }
.svc-reviews .svc-rating-card__text { margin: 0; max-width: 32ch; font-size: 1rem; line-height: 1.5; color: var(--on-ink); text-wrap: balance; }
.svc-rating-card__link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; }
/* Tablets: the card spans the row under the two reviews, so the number sits beside the stars, text and link. */
@media (min-width: 768px) and (max-width: 1023.98px) {
  .svc-rating-card { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 32px; row-gap: 4px; align-items: center; padding: 28px 32px; }
  .svc-rating-card__num { grid-row: 1 / span 3; }
}

/* ---------- 8. Questions ---------- */
.svc-faq__grid { display: grid; grid-template-columns: 1fr; gap: 32px; }
.svc-faq__head .head { margin-bottom: 20px; }
.svc-faq__phone { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-size: 1.0625rem; text-decoration: none; }
.svc-faq__phone:hover { color: var(--accent); }
.svc-faq__group { margin: 32px 0 14px; font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); }
.svc-faq__group:first-child { margin-top: 0; }
@media (min-width: 1024px) {
  .svc-faq__grid { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr); gap: 72px; align-items: start; }
  .svc-faq__head { position: sticky; top: calc(var(--header-h) + 32px); }
}

/* ---------- 9. Related ---------- */
.page-service .related .head--split > .btn { justify-self: start; }
@media (min-width: 1024px) { .page-service .related .head--split > .btn { justify-self: end; } }
/* Tablets: three cards in a row, not two and an orphan. Phones: the compact rows show the whole line, not "gumlin...". */
@media (min-width: 640px) and (max-width: 1023.98px) {
  .page-service .related .svc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .page-service .related .svc-card__body { padding: 46px 16px 18px; }
  .page-service .related .svc-card__disc { left: 14px; }
}
@media (max-width: 639.98px) { .page-service .related .svc-card__text { display: block; -webkit-line-clamp: unset; overflow: visible; } }
