/* Exact internal-page compositions based on the six Untitled (4) Figma PDF exports. */
body.inner-page {
  background-color: #fff;
  background-image: linear-gradient(
    179.849884691346deg,
    #1c2e53 28.363%,
    #fff 74.555%
  );
  background-position: top center;
  background-repeat: no-repeat;
  background-size: 100% 976px;
}

/* Individual patient stories */
.page-shell--story {
  min-height: 0;
  padding-bottom: 56px;
}

.patient-story {
  width: min(calc(100% - 56px), 1240px);
  margin: 0 auto;
}

.patient-story__back {
  display: inline-flex;
  margin: 0 0 20px;
  color: #d7e4fd;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-decoration: none;
  text-transform: uppercase;
}

.patient-story__back:hover,
.patient-story__back:focus-visible {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.patient-story__header {
  padding: clamp(34px, 5vw, 70px);
  color: #fff;
  background: linear-gradient(135deg, #315fb5, #17345f);
  border-radius: 24px;
}

.patient-story__header p {
  margin: 0 0 8px;
  color: #cbd9f2;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.patient-story__header h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(54px, 8vw, 96px);
}

.patient-story__images {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin: 34px 0;
}

.patient-story__images figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: #dce5f4;
  border-radius: 22px;
}

.patient-story__images img {
  display: block;
  width: 100%;
  aspect-ratio: 1.55;
  object-fit: cover;
}

.patient-story__images figcaption {
  position: absolute;
  right: 14px;
  bottom: 14px;
  padding: 8px 13px;
  color: #17345f;
  background: rgb(255 255 255 / 90%);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.patient-story__content {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr);
  gap: clamp(30px, 5vw, 72px);
  align-items: start;
  padding: clamp(30px, 5vw, 64px);
  background: #fff;
  border-radius: 24px;
}

.patient-story__content h2 {
  margin: 0 0 18px;
  color: #17345f;
  font-size: clamp(34px, 4vw, 54px);
}

.patient-story__content p {
  color: #334f79;
  line-height: 1.65;
}

.patient-story__content aside {
  padding: 28px;
  color: #fff;
  background: #17345f;
  border-radius: 18px;
}

.patient-story__content aside h2,
.patient-story__content aside p {
  color: #fff;
}

.patient-story__content aside h2 {
  font-size: 30px;
}

.patient-story__pagination {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: 28px;
}

.patient-story__pagination a {
  color: #315fb5;
  font-weight: 700;
  text-decoration: none;
}

@media (max-width: 720px) {
  .patient-story {
    width: calc(100% - 20px);
  }

  .patient-story__images,
  .patient-story__content {
    grid-template-columns: 1fr;
  }

  .patient-story__images {
    gap: 14px;
  }

  .patient-story__content {
    padding: 26px 20px;
  }

  .patient-story__header h1 {
    max-width: 100%;
    font-size: clamp(34px, 10vw, 40px);
    overflow-wrap: anywhere;
  }
}

body.inner-page .page-shell {
  min-height: 0;
}

.inner-main {
  width: 100%;
  margin: 0;
}

.header-frame {
  width: min(calc(100% - 36px), 1404px);
  margin: 22px auto 0;
  padding: 0 26px;
}

.page-title,
.display-heading,
.split-copy h2,
.treatment h2,
.cta-copy h2,
.about-copy h2,
.staff-card h2,
.profile-dialog__name {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 400;
  line-height: .92;
  text-transform: uppercase;
}

.page-title {
  font-size: clamp(54px, 5.1vw, 74px);
}

.display-heading {
  font-size: clamp(48px, 4.6vw, 66px);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--blue);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: .28em;
  text-transform: uppercase;
}

.intro-copy,
.digital-intro p,
.split-copy p,
.service-library-card p,
.service-showcase p,
.case-card p,
.treatment p,
.about-copy p,
.about-copy li,
.team-intro p,
.cta-copy p,
.official-card p {
  color: #173464;
  font-size: 14px;
  line-height: 1.35;
}

.button--soft {
  color: #fff;
  background: #8da9dc;
}

.button--small {
  min-height: 40px;
  width: auto;
  padding: 10px 28px;
  border-radius: 10px;
  font-size: 10px;
}

.page-hero {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 493px;
  overflow: hidden;
  padding: 42px 24px;
  color: #fff;
  text-align: center;
  background: #172b55 center / cover no-repeat;
  border-radius: 24px;
  isolation: isolate;
}

.page-hero::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  background: rgba(20, 42, 82, .48);
}

.page-hero .page-title,
.page-hero .eyebrow,
.page-hero .intro-copy {
  color: #fff;
}

.page-hero .intro-copy {
  max-width: 680px;
  margin: 20px auto 0;
}

.page-hero--services {
  background-image: url("assets/figma-opt/services/06.webp");
}

.page-hero--digital {
  background-image: url("assets/figma-opt/digital-smile-design/02.webp");
}

.page-hero--before {
  background-image: url("assets/figma-v4/before-after/hero.webp");
}

.page-hero--before::before {
  background: rgba(35, 53, 87, .42);
}

/* Services index */
.page-shell--services {
  padding-bottom: 66px;
}

.page-services-index .page-hero .page-title {
  font-size: clamp(52px, 4.3vw, 62px);
}

.page-services-index .page-hero .eyebrow {
  margin-top: 24px;
  font-size: 18px;
  letter-spacing: .34em;
}

.services-feature {
  position: relative;
  z-index: 2;
  width: min(88%, 1190px);
  margin: -66px auto 72px;
  padding: 24px 14px 32px;
  color: #fff;
  background: linear-gradient(135deg, #315ba9, #1a315d 82%);
  border-radius: 24px;
}

.services-feature .display-heading {
  color: #fff;
  text-align: center;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.service-showcase {
  min-height: 396px;
  padding: 16px;
  background: #27477f;
  border-radius: 14px;
}

.service-showcase img {
  width: 100%;
  aspect-ratio: 1.94;
  object-fit: cover;
  border-radius: 8px;
}

.service-showcase h3,
.service-library-card h3 {
  margin: 12px 0 8px;
  padding-top: 10px;
  color: #9db3df;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.1;
  text-transform: uppercase;
  border-top: 1px solid #8da7d8;
}

.service-showcase p {
  min-height: 78px;
  margin: 0 0 16px;
  color: #fff;
}

.split-intro {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  gap: 40px;
  align-items: center;
  width: min(86%, 1160px);
  margin: 0 auto;
}

.split-intro__image {
  width: 100%;
  aspect-ratio: 1.38;
  object-fit: cover;
  border-radius: 20px;
  filter: saturate(.55) sepia(.04) hue-rotate(175deg);
}

.split-copy h2 {
  font-size: 58px;
}

.split-copy p {
  margin: 20px 0 0;
}

.additional-services {
  width: min(calc(100% - 48px), 1240px);
  margin: 70px auto 130px;
}

.additional-services > .display-heading {
  color: var(--blue);
  text-align: center;
}

.service-library {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 62px;
  margin-top: 40px;
}

.service-library__column {
  display: grid;
  gap: 72px;
  align-content: start;
}

.service-library__column--left,
.service-library__column--right {
  padding-top: 220px;
}

.service-library-card {
  padding: 16px 16px 22px;
  background: linear-gradient(180deg, #dce8ff, #f5f5f5 86%);
  border-radius: 12px;
  box-shadow: 12px 13px 12px -9px rgb(31 49 85 / 20%);
}

.service-library-card img {
  width: 100%;
  aspect-ratio: 1.72;
  object-fit: cover;
  border-radius: 8px;
}

.service-library-card h3 {
  color: var(--ink);
}

.service-library-card p {
  min-height: 72px;
  margin: 0 0 16px;
  color: #315aa8;
}

.service-shortcuts,
.profile-shortcuts {
  margin: 58px auto 0;
  padding: 28px;
  color: #fff;
  text-align: center;
  background: linear-gradient(145deg, #315aa8, #172e59 78%);
  border-radius: 18px;
}

.service-shortcuts h3,
.profile-shortcuts h2 {
  margin: 0 0 18px;
  color: #fff;
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 400;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.service-shortcuts div,
.profile-shortcuts div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  justify-content: center;
}

.service-shortcuts a,
.profile-shortcuts a {
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-underline-offset: 4px;
  text-transform: uppercase;
}

/* Before and after */
.page-shell--before-after {
  padding-bottom: 66px;
}

.page-before-after .page-hero .page-title {
  font-size: 64px;
}

.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 46px;
  width: min(90%, 1212px);
  margin: 30px auto 0;
}

.case-column {
  display: grid;
  gap: 46px;
  align-content: start;
}

.case-column--center {
  margin-top: -154px;
}

.case-card {
  padding: 16px 16px 20px;
  background: linear-gradient(180deg, #dae7ff, #f5f5f5 88%);
  border-radius: 12px;
  box-shadow: 10px 12px 12px -8px rgb(30 48 82 / 24%);
}

.case-card h2 {
  margin: 10px 0 8px;
  padding-top: 10px;
  color: var(--ink);
  font-size: 18px;
  line-height: 1;
  text-transform: uppercase;
  border-top: 1px solid #18396f;
}

.case-card p {
  min-height: 86px;
  margin: 0 0 16px;
  color: #315aa8;
}

.case-card .button {
  width: 156px;
}

.smile-compare {
  --position: 50%;
  position: relative;
  width: 100%;
  aspect-ratio: 1.98;
  overflow: hidden;
  border-radius: 8px;
  background: #d7e1f4;
}

.smile-compare > img,
.smile-compare__after,
.smile-compare__after img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.smile-compare > img,
.smile-compare__after img {
  object-fit: cover;
}

.smile-compare__after {
  overflow: hidden;
  clip-path: inset(0 0 0 var(--position));
}

.smile-compare::after {
  position: absolute;
  z-index: 2;
  top: 0;
  bottom: 0;
  left: var(--position);
  width: 2px;
  content: "";
  pointer-events: none;
  background: #18396f;
  transform: translateX(-1px);
}

.smile-compare input[type="range"] {
  position: absolute;
  z-index: 3;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: ew-resize;
  appearance: none;
  background: transparent;
  outline: 0;
}

.smile-compare input[type="range"]::-webkit-slider-runnable-track {
  height: 2px;
  background: transparent;
}

.smile-compare input[type="range"]::-webkit-slider-thumb {
  width: 38px;
  height: 38px;
  margin-top: -18px;
  appearance: none;
  background: rgb(222 229 239 / 88%);
  border: 3px solid #173464;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgb(0 0 0 / 18%);
}

.smile-compare input[type="range"]::-moz-range-track {
  height: 2px;
  background: transparent;
}

.smile-compare input[type="range"]::-moz-range-thumb {
  width: 34px;
  height: 34px;
  background: rgb(222 229 239 / 88%);
  border: 3px solid #173464;
  border-radius: 50%;
}

.smile-compare:focus-within::after {
  box-shadow: 0 0 0 4px rgb(239 183 91 / 65%);
}

/* Standalone detail and about panels */
.page-service-detail .inner-main,
.page-about .inner-main {
  width: min(calc(100% - 36px), 1404px);
  margin: 18px auto 0;
  padding-inline: 26px;
}

.detail-panel,
.about-panel {
  padding: 68px 82px 80px;
  background: linear-gradient(180deg, #cbd8ee, #f5f5f5 88%);
  border-radius: 24px;
}

.detail-panel > .page-title,
.about-panel > .page-title {
  margin-bottom: 58px;
}

.service-layout,
.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 2.1fr) minmax(330px, 1fr);
  gap: 42px;
  align-items: start;
}

.side-nav {
  align-self: start;
  padding: 52px 48px;
  color: #fff;
  background: linear-gradient(145deg, #315aa8, #172e59 78%);
  border-radius: 24px;
}

.side-nav h2 {
  margin: 0 0 30px;
  color: #91a9db;
  font-family: var(--font-display);
  font-size: 62px;
  font-weight: 400;
  line-height: .92;
  text-transform: uppercase;
}

.side-nav a {
  display: block;
  margin: 17px 0;
  color: #fff;
  font-size: 20px;
}

.treatment {
  margin-bottom: 52px;
}

.treatment h2 {
  margin-bottom: 14px;
  color: #88a4da;
  font-size: 54px;
}

.treatment-pairs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.treatment-pairs figure {
  margin: 0;
  text-align: center;
}

.treatment-pairs img {
  width: 100%;
  aspect-ratio: 1.85;
  object-fit: cover;
  border-radius: 22px;
}

.treatment-pairs figcaption {
  margin-top: 6px;
  color: var(--ink);
  font-size: 14px;
}

.treatment p {
  margin: 22px 0 0;
  text-align: justify;
}

.treatment .wide-image {
  width: min(66%, 520px);
  margin: 0;
  border-radius: 24px;
}

.smile-cta--inline {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr .82fr 1fr;
  gap: 0;
  align-items: center;
  width: min(88%, 1244px);
  min-height: 410px;
  margin: 90px auto 0;
  padding: 20px;
  overflow: visible;
  color: #fff;
  background: linear-gradient(135deg, #315aa8, #172e59 82%);
  border-radius: 24px;
}

.smile-cta--inline > img:first-child {
  width: 100%;
  height: 100%;
  min-height: 370px;
  object-fit: cover;
  border-radius: 18px;
}

.smile-cta--inline .tooth {
  position: relative;
  z-index: 2;
  width: 380px;
  max-width: 132%;
  justify-self: center;
  margin: -116px -64px -38px;
  filter: drop-shadow(0 15px 10px rgb(0 0 0 / 18%));
}

.cta-copy {
  position: relative;
  z-index: 3;
  padding: 24px 32px;
}

.cta-copy h2 {
  color: #fff;
  font-size: 56px;
}

.cta-copy p {
  margin: 24px 0;
  color: #fff;
}

/* Digital Smile Design */
.page-shell--digital {
  padding-bottom: 40px;
}

.page-digital-smile .page-hero .page-title {
  font-size: 58px;
}

.digital-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  gap: 40px;
  align-items: center;
  padding-top: 30px;
}

.digital-intro img {
  width: 100%;
  aspect-ratio: 1.65;
  object-fit: contain;
  background: #000;
  border-radius: 20px;
}

.digital-intro .display-heading {
  font-size: 58px;
}

.digital-intro p {
  margin: 22px 0 0;
}

.digital-body {
  width: min(calc(100% - 48px), 1240px);
  margin: 60px auto 120px;
}

.benefits {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 42px;
  margin-bottom: 74px;
}

.benefit {
  display: grid;
  place-items: center;
  min-height: 252px;
  padding: 28px 18px;
  color: #315aa8;
  text-align: center;
  background: linear-gradient(180deg, #f3f3f3, #dbe7ff);
  border-radius: 12px;
  box-shadow: 12px 14px 12px -10px rgb(30 48 82 / 20%);
}

.benefit img {
  width: 138px;
  height: 112px;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.benefit strong {
  color: #315aa8;
  font-size: 24px;
  font-weight: 400;
  line-height: 1.05;
}

.digital-showcase-image {
  width: 100%;
  margin: 0 0 58px;
  object-fit: cover;
  border-radius: 24px;
}

.choose-card {
  display: grid;
  grid-template-columns: .98fr 1.02fr;
  gap: 40px;
  align-items: stretch;
  margin: 18px 0 72px;
  padding: 18px;
  color: #fff;
  background: linear-gradient(135deg, #315aa8, #172e59 82%);
  border-radius: 20px;
}

.choose-card img {
  width: 100%;
  height: 100%;
  min-height: 460px;
  object-fit: cover;
  border-radius: 15px;
}

.choose-card > div {
  padding: 10px 24px 10px 0;
}

.choose-card .display-heading {
  color: #fff;
  font-size: 54px;
}

.choose-card ul {
  padding-left: 20px;
}

.choose-card li {
  margin: 6px 0;
  color: #fff;
  font-size: 14px;
  line-height: 1.25;
}

.official-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  max-width: 1040px;
  margin: 0 auto;
}

.official-card {
  min-height: 620px;
  padding: 52px 60px;
  text-align: center;
}

.official-card + .official-card {
  border-left: 2px solid #8ea8db;
}

.official-card img {
  width: 260px;
  height: 260px;
  margin: 0 auto 40px;
  object-fit: contain;
}

.official-card h2 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 400;
  line-height: .95;
  text-transform: uppercase;
}

.official-card p {
  margin-top: 28px;
}

/* About */
.about-layout {
  grid-template-columns: minmax(0, 2.05fr) minmax(330px, 1fr);
}

.about-copy h2 {
  margin-bottom: 34px;
  color: #88a4da;
  font-size: 56px;
}

.about-copy p,
.about-copy ol {
  max-width: 780px;
}

.about-copy .accent {
  margin: 34px 0;
  color: #315aa8;
  font-size: 20px;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.about-copy ol {
  margin: 0;
  padding-left: 22px;
}

.about-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 30px;
  width: min(68%, 820px);
  margin-top: 34px;
}

.about-gallery img {
  width: 100%;
  aspect-ratio: 1.45;
  object-fit: cover;
  border-radius: 18px;
}

/* Team */
.page-team .inner-main {
  width: min(calc(100% - 36px), 1404px);
  margin: 18px auto 0;
  padding-inline: 26px;
}

.team-panel {
  padding: 54px 74px 76px;
  background: linear-gradient(180deg, #cbd8ee, #f5f5f5 90%);
  border-radius: 24px;
}

.team-panel > .page-title {
  margin-bottom: 36px;
}

.team-lead {
  display: grid;
  grid-template-columns: minmax(0, 1.85fr) minmax(330px, 1fr);
  gap: 80px;
  align-items: start;
}

.team-lead > div > img {
  width: 100%;
  aspect-ratio: 1.96;
  object-fit: cover;
  border-radius: 22px;
  filter: none;
}

.team-intro {
  max-width: 760px;
  margin: -8px 0 70px;
}

.team-intro p {
  margin: 0 0 20px;
  text-align: justify;
}

.staff-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 70px 42px;
  width: min(88%, 1090px);
  margin: 0 auto;
}

.staff-card {
  padding: 18px 18px 22px;
  text-align: center;
  background: linear-gradient(180deg, #dbe8ff, #f7f7f7 88%);
  border-radius: 12px;
  box-shadow: 12px 14px 12px -9px rgb(30 48 82 / 22%);
}

.staff-card .portrait {
  display: flex;
  align-items: end;
  justify-content: center;
  height: 260px;
  overflow: hidden;
  background: linear-gradient(145deg, #315aa8, #172e59 78%);
  border-radius: 22px;
}

.staff-card .portrait img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
}

.staff-card h2 {
  margin: 12px 0 6px;
  font-size: 36px;
}

.staff-card p {
  min-height: 36px;
  margin: 0 0 16px;
  padding-bottom: 12px;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.15;
  text-transform: uppercase;
  border-bottom: 1px solid #173464;
}

.staff-card .button {
  width: 156px;
}

.staff-card:nth-last-child(2) {
  grid-column: 1 / 2;
  transform: translateX(55%);
}

.staff-card:last-child {
  grid-column: 2 / 3;
  transform: translateX(55%);
}

.profile-shortcuts { width: min(88%, 1090px); }

.profile-dialog {
  width: min(calc(100% - 60px), 1160px);
  max-height: min(80vh, 720px);
  padding: 42px;
  color: #fff;
  background: rgb(29 53 94 / 92%);
  border: 0;
  border-radius: 22px;
  box-shadow: 0 30px 80px rgb(0 0 0 / 38%);
}

.profile-dialog::backdrop {
  background: rgb(11 28 57 / 38%);
  backdrop-filter: blur(4px);
}

.profile-dialog__layout {
  display: grid;
  grid-template-columns: minmax(280px, .8fr) minmax(0, 1.2fr);
  gap: 48px;
  align-items: center;
}

.profile-dialog__photo {
  width: 100%;
  max-height: 560px;
  object-fit: contain;
  background: #fff;
  border-radius: 24px;
}

.profile-dialog__name {
  color: #fff;
  font-size: 62px;
}

.profile-dialog__role {
  margin: 8px 0 22px;
  color: #91a9db;
  font-size: 20px;
  text-transform: uppercase;
}

.profile-dialog__bio {
  color: #fff;
  font-size: 14px;
  line-height: 1.35;
}

.profile-dialog__close {
  position: absolute;
  top: 14px;
  right: 18px;
  padding: 6px 10px;
  color: #fff;
  background: transparent;
  border: 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  cursor: pointer;
}

/* Inner-page footer: same shared component, without the home CTA overlap. */
.closing--footer-only {
  width: min(calc(100% - 48px), 1386px);
  margin: 34px auto 18px;
}

.closing--footer-only .site-footer {
  min-height: 306px;
  margin-top: 0;
  padding: 64px 68px 44px;
}

@media (min-width: 1600px) {
  .header-frame,
  .page-service-detail .inner-main,
  .page-about .inner-main,
  .page-team .inner-main {
    width: min(calc(100% - 96px), 1720px);
    padding-inline: 34px;
  }

  .additional-services,
  .digital-body {
    max-width: 1480px;
  }
}

@media (max-width: 1100px) {
  .service-library {
    gap: 30px;
  }

  .cases-grid {
    gap: 24px;
  }

  .detail-panel,
  .about-panel {
    padding-inline: 44px;
  }

  .service-layout,
  .about-layout,
  .team-lead {
    grid-template-columns: minmax(0, 1fr) minmax(270px, .62fr);
    gap: 32px;
  }

  .side-nav {
    padding: 36px 30px;
  }

  .side-nav h2 {
    font-size: 50px;
  }

  .side-nav a {
    font-size: 16px;
  }

  .staff-grid {
    width: 100%;
    gap: 34px 24px;
  }
}

@media (max-width: 920px) {
  .closing--footer-only .site-footer {
    padding-inline: 42px;
  }

  .page-hero {
    min-height: 420px;
  }

  .service-grid,
  .cases-grid,
  .staff-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-showcase:last-child {
    grid-column: 1 / -1;
  }

  .service-library {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-library__column--left,
  .service-library__column--right {
    padding-top: 0;
  }

  .service-library__column--right {
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .split-intro,
  .digital-intro,
  .service-layout,
  .about-layout,
  .team-lead,
  .profile-dialog__layout {
    grid-template-columns: 1fr;
  }

  .cases-grid {
    width: 100%;
  }

  .case-column--center {
    margin-top: 0;
  }

  .case-column:last-child {
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .benefits {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .smile-cta--inline,
  .choose-card {
    grid-template-columns: 1fr;
  }

  .smile-cta--inline .tooth {
    width: 300px;
    margin: -90px auto -34px;
  }

  .about-gallery {
    width: 100%;
  }

  .team-intro {
    margin-top: 32px;
  }

  .staff-card:nth-last-child(2),
  .staff-card:last-child {
    grid-column: auto;
    transform: none;
  }

  .official-card {
    padding-inline: 28px;
  }
}

@media (max-width: 620px) {
  .header-frame {
    width: min(calc(100% - 20px), 1404px);
    margin-top: 10px;
    padding: 0 14px;
  }

  .page-hero {
    min-height: 330px;
    border-radius: 16px;
  }

  .page-title {
    max-width: 100%;
    font-size: clamp(34px, 10vw, 40px);
    overflow-wrap: anywhere;
  }

  .page-services-index .page-hero .page-title,
  .page-digital-smile .page-hero .page-title,
  .page-before-after .page-hero .page-title {
    font-size: clamp(32px, 9.5vw, 38px);
  }

  .page-services-index .page-hero .eyebrow {
    font-size: 13px;
  }

  .services-feature {
    width: 94%;
    margin-top: -38px;
    padding: 20px;
  }

  .service-grid,
  .service-library,
  .service-library__column--right,
  .cases-grid,
  .case-column:last-child,
  .staff-grid,
  .benefits,
  .about-gallery,
  .treatment-pairs,
  .official-grid {
    grid-template-columns: 1fr;
  }

  .service-showcase:last-child,
  .service-library__column--right,
  .case-column:last-child {
    grid-column: auto;
  }

  .service-library {
    gap: 54px;
  }

  .service-library__column {
    gap: 54px;
  }

  .additional-services,
  .digital-body {
    width: min(calc(100% - 28px), 1240px);
  }

  .split-intro {
    width: 100%;
    gap: 24px;
  }

  .split-copy h2,
  .digital-intro .display-heading,
  .treatment h2,
  .about-copy h2,
  .choose-card .display-heading,
  .official-card h2 {
    max-width: 100%;
    font-size: clamp(34px, 10vw, 40px);
    overflow-wrap: anywhere;
  }

  .page-service-detail .inner-main,
  .page-about .inner-main,
  .page-team .inner-main {
    width: min(calc(100% - 20px), 1404px);
    padding-inline: 14px;
  }

  .detail-panel,
  .about-panel,
  .team-panel {
    padding: 40px 20px;
    border-radius: 18px;
  }

  .detail-panel > .page-title,
  .about-panel > .page-title {
    margin-bottom: 38px;
  }

  .side-nav {
    padding: 30px 24px;
  }

  .treatment .wide-image {
    width: 100%;
  }

  .smile-cta--inline {
    width: min(calc(100% - 28px), 1244px);
    margin-top: 54px;
  }

  .smile-cta--inline > img:first-child {
    min-height: 260px;
  }

  .cta-copy h2 {
    max-width: 100%;
    font-size: clamp(34px, 10vw, 40px);
    overflow-wrap: anywhere;
  }

  .choose-card {
    padding: 14px;
  }

  .choose-card img {
    min-height: 300px;
  }

  .official-grid {
    max-width: 420px;
  }

  .official-card {
    min-height: 440px;
    padding: 42px 20px;
  }

  .official-card + .official-card {
    border-top: 2px solid #8ea8db;
    border-left: 0;
  }

  .about-gallery img {
    aspect-ratio: 1.35;
  }

  .team-lead {
    gap: 28px;
  }

  .staff-card .portrait {
    height: 260px;
  }

  .profile-dialog {
    width: calc(100% - 24px);
    padding: 42px 20px 24px;
  }

  .profile-dialog__name {
    font-size: 44px;
  }

  .closing--footer-only {
    width: min(calc(100% - 20px), 1386px);
  }

  .closing--footer-only .site-footer {
    min-height: 0;
    padding-top: 70px;
    padding-inline: 28px;
  }
}

/* Match the desktop header stage used by page-shell without margin collapse. */
@media (min-width: 921px) {
  .header-frame {
    padding-top: 12px;
    padding-bottom: 24px;
  }

  .header-frame > .site-header {
    margin: 0;
  }

  .legacy-page .legacy-main,
  .page-service-detail .inner-main,
  .page-about .inner-main,
  .page-team .inner-main {
    margin-top: 0;
  }
}

/* Client feedback release: image-light heroes, structured comparisons and team media. */
.page-hero--services,
.page-hero--digital {
  background-image: none;
  background:
    radial-gradient(circle at 78% 20%, rgb(144 174 225 / 48%), transparent 38%),
    linear-gradient(145deg, #315aa8, #172e59 80%);
}

.page-hero--services::before,
.page-hero--digital::before {
  background: linear-gradient(110deg, rgb(17 38 77 / 12%), rgb(49 90 168 / 8%));
}

.page-services-index .context-subnav,
.page-digital-smile .context-subnav {
  margin-bottom: 54px;
}

.page-service-detail .context-subnav {
  width: 100%;
  margin: 0 0 42px;
}

.team-lead > div > img {
  aspect-ratio: 1.954;
  object-position: center;
}

.treatment-pairs { gap: clamp(14px, 2vw, 24px); }
.treatment-pairs figure {
  overflow: visible;
  background: transparent;
  border: 0;
}
.treatment-pairs img {
  border: 0;
  border-radius: 18px;
  box-shadow: none;
}
.treatment-pairs__image-frame {
  position: relative;
  display: block;
  aspect-ratio: 1.85;
  overflow: hidden;
  border-radius: 18px;
}
.treatment-pairs__image-frame img {
  position: absolute;
  top: -8%;
  left: -5%;
  width: 110%;
  max-width: none;
  height: 116%;
  margin: 0;
  aspect-ratio: auto;
  object-fit: cover;
  border-radius: 0;
}
.treatment-pairs figcaption {
  margin-top: 10px;
  color: #315aa8;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

@media (max-width: 620px) {
  .page-service-detail .context-subnav { width: 100%; }
}

/* Cosmetic Restorations now follows the shared service hero hierarchy. */
.page-hero__parent-link {
  display: inline-block;
  margin-bottom: 20px;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-decoration: none;
  text-transform: uppercase;
}

.page-hero__parent-link:hover,
.page-hero__parent-link:focus-visible {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.cosmetic-service-hero {
  min-height: 500px;
}

.page-service-detail--hero .context-subnav {
  width: min(1180px, calc(100% - 44px));
  margin: -28px auto 42px;
}

.page-service-detail--hero .detail-panel {
  padding-top: 68px;
}

@media (max-width: 620px) {
  .cosmetic-service-hero {
    min-height: 390px;
    padding: 42px 18px;
    border-radius: 18px;
  }

  .cosmetic-service-hero .page-title {
    max-width: 100%;
    font-size: clamp(34px, 9.7vw, 38px);
    overflow-wrap: anywhere;
  }

  .page-service-detail--hero .context-subnav {
    width: calc(100% - 16px);
    margin: -20px auto 34px;
  }

  .page-service-detail--hero .detail-panel {
    padding-top: 40px;
  }
}
