:root {
  --background: #f7f9fd;
  --foreground: #102a43;
  --card: #ffffff;
  --card-foreground: #102a43;
  --popover: #ffffff;
  --popover-foreground: #102a43;
  --primary: #2d6cdf;
  --primary-foreground: #ffffff;
  --secondary: #e8f0ff;
  --secondary-foreground: #102a43;
  --muted: #eef4ff;
  --muted-foreground: #6b7f9e;
  --accent: #9ed0ff;
  --accent-foreground: #102a43;
  --destructive: #c23b48;
  --border: #d5e1f2;
  --input: #d5e1f2;
  --ring: #4f8fe8;
  --radius: 0.8rem;
  --ink: #102a43;
  --ink-soft: #274c77;
  --blue: #2d6cdf;
  --blue-pale: #e8f0ff;
  --sky: #9ed0ff;
  --paper: #f7f9fd;
  --white: #ffffff;
  --line: #d5e1f2;
  --font-sans: "Aptos", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-serif: "Iowan Old Style", "Baskerville", "Times New Roman", serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

.wp-site-blocks,
.wp-block-post-content {
  overflow: clip;
}

.wp-site-blocks > *,
.wp-block-post-content > * {
  margin-block-start: 0;
}

.wp-block-group,
.wp-block-image,
.wp-block-buttons,
.wp-block-paragraph {
  margin-block-end: 0;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

::selection {
  color: var(--ink);
  background: var(--sky);
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  transform: translateY(-160%);
  border-radius: 8px;
  background: var(--sky);
  padding: 10px 16px;
  font-weight: 700;
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.section-shell {
  width: min(1220px, calc(100% - 64px));
  margin-inline: auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #2b65c8;
  font-size: 0.79rem;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 28px;
  height: 2px;
  background: currentColor;
  content: "";
}

.eyebrow.light {
  color: var(--sky);
}

.wp-element-button,
.wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 1px solid var(--blue);
  border-radius: 999px;
  background: var(--blue);
  color: white;
  padding-inline: 24px;
  font-size: 0.94rem;
  font-weight: 700;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.wp-element-button:hover,
.wp-block-button__link:hover {
  transform: translateY(-2px);
  border-color: #174a88;
  background: #174a88;
  color: white;
  box-shadow: 0 10px 24px rgb(23 74 136 / 20%);
}

.wp-block-button.is-style-outline-blue .wp-block-button__link {
  border-color: #9bb6de;
  background: white;
  color: #205ecf;
}

.wp-block-button.is-style-outline-blue .wp-block-button__link:hover {
  transform: translateY(-2px);
  border-color: #174a88;
  background: #174a88;
  color: white;
  box-shadow: 0 10px 24px rgb(23 74 136 / 16%);
}

.wp-element-button:focus-visible,
.wp-block-button__link:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 3px solid #4f8fe8;
  outline-offset: 3px;
  border-color: #174a88;
  box-shadow: 0 0 0 4px rgb(79 143 232 / 24%);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgb(213 225 242 / 82%);
  background: rgb(247 249 253 / 92%);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: grid;
  grid-template-columns: minmax(250px, 1fr) auto auto;
  align-items: center;
  gap: 34px;
  width: min(1360px, calc(100% - 48px));
  min-height: 82px;
  margin-inline: auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
}

.brand > * {
  margin: 0;
}

.brand-mark {
  position: relative;
  display: flex;
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  gap: 1px;
  border: 1px solid rgb(255 255 255 / 40%);
  border-radius: 50%;
  background: linear-gradient(145deg, #387bea, #174a88);
  color: white;
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 650;
  letter-spacing: -0.1em;
  line-height: 1;
  box-shadow: 0 0 0 4px var(--blue-pale), 0 8px 20px rgb(32 94 207 / 18%);
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

a.brand-mark {
  text-decoration: none;
}

.brand-mark span:last-child {
  color: #cfe7ff;
}

.brand:hover .brand-mark {
  transform: translateY(-2px) rotate(-3deg);
  background: linear-gradient(145deg, #174a88, #102a43);
  box-shadow: 0 0 0 5px var(--blue-pale), 0 10px 24px rgb(32 94 207 / 24%);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.brand-copy .wp-block-site-title,
.brand-copy .wp-block-site-tagline {
  margin: 0;
}

.brand-copy .wp-block-site-title a {
  color: var(--ink);
  text-decoration: none;
}

.brand-copy strong,
.brand-copy .wp-block-site-title {
  font-family: var(--font-serif);
  font-size: 1.12rem;
  font-weight: 650;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.brand-copy small,
.brand-copy .wp-block-site-tagline {
  margin-top: 2px;
  color: #6c83a4;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.085em;
  text-transform: uppercase;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.desktop-nav .wp-block-navigation__responsive-container-content,
.desktop-nav .wp-block-navigation__container {
  gap: 6px;
  flex-wrap: nowrap;
}

.desktop-nav a {
  position: relative;
  border-radius: 999px;
  padding: 9px 13px;
  color: #3d6088;
  font-size: 0.88rem;
  font-weight: 650;
  white-space: nowrap;
  transition: color 180ms ease, background 180ms ease;
}

.desktop-nav a:hover,
.desktop-nav a.active,
.desktop-nav .current-menu-item > a,
.desktop-nav a[aria-current="page"] {
  background: var(--blue-pale);
  color: var(--ink);
}

.desktop-nav a.active::after,
.desktop-nav .current-menu-item > a::after,
.desktop-nav a[aria-current="page"]::after {
  position: absolute;
  bottom: 3px;
  left: 50%;
  width: 4px;
  height: 4px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: var(--blue);
  content: "";
}

.header-call {
  min-height: 42px;
}

.header-call .wp-element-button {
  min-height: 42px;
  white-space: nowrap;
}

.menu-toggle,
.mobile-nav {
  display: none;
}

.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(380px, 0.88fr);
  align-items: center;
  gap: clamp(48px, 7vw, 96px);
  min-height: 720px;
  padding-block: 76px 88px;
}

.hero-copy h1 {
  max-width: 720px;
  margin: 22px 0 28px;
  font-size: clamp(3rem, 5.2vw, 4.7rem);
  font-weight: 560;
  letter-spacing: -0.055em;
  line-height: 0.99;
}

.hero-copy h1 em {
  color: #2864cf;
  font-family: var(--font-serif);
  font-weight: 500;
}

.hero-lead {
  max-width: 630px;
  margin-bottom: 30px;
  color: #516c90;
  font-size: 1.17rem;
  line-height: 1.72;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-trust {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  overflow: hidden;
  margin-top: 38px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgb(255 255 255 / 74%);
  box-shadow: 0 16px 42px rgb(15 50 88 / 7%);
}

.hero-trust > div {
  min-height: 112px;
  border-right: 1px solid var(--line);
  padding: 18px 20px;
  transition: background 180ms ease, transform 180ms ease;
}

.hero-trust > div:last-child {
  border-right: 0;
}

.hero-trust > div:hover {
  background: var(--blue-pale);
  transform: translateY(-2px);
}

.hero-trust > div > span {
  display: block;
  margin-bottom: 12px;
  color: #2d6cdf;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.hero-trust strong {
  display: block;
  color: var(--ink);
  font-size: 0.9rem;
  line-height: 1.25;
}

.hero-trust small {
  display: block;
  margin-top: 5px;
  color: #6b7f9e;
  font-size: 0.73rem;
  line-height: 1.4;
}

.hero-visual {
  position: relative;
  min-height: 560px;
}

.image-frame {
  position: absolute;
  inset: 0 0 42px 44px;
  overflow: hidden;
  border-radius: 180px 180px 28px 28px;
  background: var(--blue-pale);
  box-shadow: 0 35px 80px rgb(16 42 67 / 13%);
}

.image-frame::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgb(10 31 56 / 35%));
  content: "";
}

.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-note {
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: 2;
  width: min(330px, 76%);
  border: 1px solid rgb(255 255 255 / 35%);
  border-radius: 20px;
  background: rgb(16 42 67 / 94%);
  padding: 24px 26px;
  color: white;
  box-shadow: 0 18px 45px rgb(16 42 67 / 22%);
}

.hero-note span {
  display: block;
  margin-bottom: 8px;
  color: var(--sky);
  font-size: 0.73rem;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-note strong {
  font-family: var(--font-serif);
  font-size: 1.18rem;
  font-weight: 500;
  line-height: 1.35;
}

.hero-index {
  position: absolute;
  top: 42px;
  right: -24px;
  writing-mode: vertical-rl;
  color: #a5b8d2;
  font-size: 0.78rem;
  letter-spacing: 0.28em;
}

.statement-section {
  display: grid;
  grid-template-columns: 0.7fr 2fr;
  gap: 72px;
  padding-block: 100px;
  border-top: 1px solid var(--line);
}

.statement-section h2,
.section-heading h2,
.expertise-copy h2,
.heritage-copy h2,
.principle-panel h2,
.history-intro h2,
.gallery-copy h2 {
  margin: 0;
  font-size: clamp(2.2rem, 4vw, 3.55rem);
  font-weight: 560;
  letter-spacing: -0.045em;
  line-height: 1.08;
}

.statement-section p {
  max-width: 720px;
  margin: 28px 0 0;
  color: #557196;
  font-size: 1.1rem;
}

.services-section {
  padding-block: 110px;
  background: #eef4ff;
}

.section-heading {
  margin-bottom: 52px;
}

.split-heading {
  display: grid;
  grid-template-columns: 1.4fr 0.7fr;
  align-items: end;
  gap: 70px;
}

.split-heading h2 {
  margin-top: 16px;
}

.split-heading > p {
  margin: 0;
  color: #607b9e;
  font-size: 1rem;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.service-card {
  display: flex;
  min-height: 360px;
  flex-direction: column;
  border: 1px solid #d8e4f4;
  border-radius: 20px;
  background: white;
  padding: 28px;
  transition: transform 220ms ease, border-color 220ms ease, background 220ms ease, box-shadow 220ms ease;
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: var(--blue);
  background: #fbfdff;
  box-shadow: 0 22px 50px rgb(16 42 67 / 10%);
}

.service-card.featured {
  background: var(--ink);
  color: white;
}

.service-card.featured:hover {
  background: #174a88;
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: auto;
}

.card-top svg {
  width: 28px;
  height: 28px;
  color: var(--blue);
}

.featured .card-top svg {
  color: var(--sky);
}

.card-top > span {
  color: #93a6c0;
  font-size: 0.74rem;
  letter-spacing: 0.14em;
}

.service-card h3 {
  margin: 48px 0 12px;
  font-size: 1.35rem;
  font-weight: 700;
}

.service-card p {
  margin-bottom: 24px;
  color: #687f9f;
  font-size: 0.93rem;
}

.featured p {
  color: #c8d7e9;
}

.card-link,
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #205ecf;
  font-size: 0.88rem;
  font-weight: 750;
}

.card-link svg,
.text-link svg {
  width: 16px;
  transition: transform 180ms ease;
}

.service-card:hover .card-link svg,
.text-link:hover svg {
  transform: translateX(4px);
}

.featured .card-link {
  color: var(--sky);
}

.expertise-section {
  display: grid;
  grid-template-columns: 1fr 0.95fr;
  align-items: center;
  gap: clamp(56px, 8vw, 110px);
  padding-block: 120px;
}

.expertise-image {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  border-radius: 24px 150px 24px 24px;
  background: var(--blue-pale);
}

.expertise-image img {
  width: 100%;
  height: 560px;
  object-fit: cover;
}

.expertise-image span {
  position: absolute;
  right: 20px;
  bottom: 20px;
  max-width: 250px;
  border-radius: 14px;
  background: var(--sky);
  padding: 18px 20px;
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.35;
}

.expertise-copy h2 {
  margin: 20px 0 24px;
}

.expertise-copy > p {
  color: #587499;
  font-size: 1.05rem;
}

.check-list {
  display: grid;
  gap: 12px;
  margin: 28px 0 30px;
  padding: 0;
  list-style: none;
}

.check-list li,
.principle-list p,
.prepare-list p {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0;
  color: #3b5f89;
  font-weight: 650;
}

.check-list svg,
.principle-list svg,
.prepare-list svg {
  flex: 0 0 auto;
  width: 20px;
  color: #2d6cdf;
}

.process-section {
  padding-block: 108px;
  background: var(--ink);
  color: white;
}

.process-section .section-heading h2 {
  margin: 16px 0 0;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: #35577f;
}

.process-card {
  min-height: 280px;
  background: var(--ink);
  padding: 36px 40px;
  transition: background 200ms ease;
}

.process-card:hover {
  background: #174a88;
}

.process-card > span {
  color: var(--sky);
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.14em;
}

.process-card h3 {
  margin: 70px 0 12px;
  font-size: 1.45rem;
}

.process-card p {
  margin: 0;
  color: #c1d0e2;
}

.heritage-teaser {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 80px;
  padding-block: 120px;
}

.heritage-copy h2 {
  margin: 18px 0 24px;
}

.heritage-copy p {
  margin-bottom: 28px;
  color: #5c789c;
}

.heritage-figures {
  display: grid;
  gap: 12px;
}

.heritage-figures div {
  display: grid;
  grid-template-columns: 140px 1fr;
  align-items: center;
  gap: 22px;
  min-height: 104px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: white;
  padding: 22px 28px;
  transition: border-color 180ms ease, transform 180ms ease;
}

.heritage-figures div:hover {
  transform: translateX(6px);
  border-color: var(--blue);
}

.heritage-figures strong {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-style: italic;
}

.heritage-figures span {
  color: #647fa2;
}

.contact-band-wrap {
  padding-bottom: 112px;
}

.contact-band {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 70px;
  border-radius: 24px;
  background: linear-gradient(135deg, #163a63, var(--ink));
  padding: 58px 64px;
  color: white;
}

.contact-band h2 {
  max-width: 680px;
  margin: 16px 0 14px;
  font-size: clamp(2rem, 3.6vw, 3rem);
  font-weight: 580;
  letter-spacing: -0.04em;
  line-height: 1.08;
}

.contact-band p {
  margin: 0;
  color: #cad9eb;
}

.contact-band-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.wp-block-button.is-style-light .wp-block-button__link {
  border-color: white;
  background: white;
  color: #174a88;
}

.wp-block-button.is-style-light .wp-block-button__link:hover {
  border-color: #b9ddff !important;
  background: #b9ddff !important;
  color: #102a43 !important;
}

.button-ghost-light .wp-block-button__link {
  border-color: #8094b2 !important;
  background: transparent;
  color: white;
}

.button-ghost-light .wp-block-button__link:hover {
  border-color: white !important;
  background: white !important;
  color: #174a88 !important;
}

.light-link {
  margin-top: 12px;
  color: var(--sky);
}

.page-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) 0.7fr;
  gap: 72px;
  align-items: end;
  min-height: 470px;
  padding-block: 88px 92px;
}

.page-hero h1 {
  max-width: 880px;
  margin: 20px 0 26px;
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  font-weight: 560;
  letter-spacing: -0.052em;
  line-height: 1;
}

.page-hero p {
  max-width: 750px;
  margin: 0;
  color: #5b7598;
  font-size: 1.12rem;
}

.page-hero-aside {
  align-self: stretch;
  display: flex;
  min-height: 190px;
  flex-direction: column;
  justify-content: space-between;
  border-left: 1px solid var(--line);
  padding: 18px 0 0 38px;
  color: #5d789d;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.precision-lines {
  display: grid;
  gap: 10px;
}

.precision-lines i {
  display: block;
  height: 1px;
  background: var(--line);
}

.precision-lines i:nth-child(2) { width: 78%; }
.precision-lines i:nth-child(3) { width: 58%; }
.precision-lines i:nth-child(4) { width: 34%; background: var(--blue); }

.endo-feature {
  background: var(--ink);
  color: white;
}

.endo-grid {
  display: grid;
  grid-template-columns: 0.75fr 1.3fr;
  gap: 90px;
  padding-block: 100px;
}

.endo-intro > svg {
  width: 54px;
  height: 54px;
  margin: 40px 0 26px;
  color: var(--sky);
}

.endo-intro h2 {
  margin-bottom: 24px;
  font-size: clamp(2.2rem, 3.8vw, 3.4rem);
  font-weight: 560;
  letter-spacing: -0.045em;
  line-height: 1.08;
}

.endo-intro p {
  color: #c1d0e2;
}

.endo-treatment-list article {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 22px;
  margin-inline: -18px;
  border-top: 1px solid #3a5c84;
  border-radius: 14px;
  padding: 30px 18px;
  transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.endo-treatment-list article:hover {
  border-color: #5794e6;
  background: rgb(45 108 223 / 18%);
  box-shadow: inset 3px 0 0 var(--sky);
  transform: translateX(6px);
}

.endo-treatment-list article:last-child {
  border-bottom: 1px solid #3a5c84;
}

.endo-treatment-list article > span {
  color: var(--sky);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
}

.endo-treatment-list h3 {
  margin-bottom: 8px;
  font-size: 1.3rem;
}

.endo-treatment-list p {
  margin: 0;
  color: #becde0;
}

.general-services {
  padding-block: 112px;
}

.general-service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.general-service-card {
  min-height: 260px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: white;
  padding: 30px;
  transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.general-service-card:hover {
  transform: translateY(-5px);
  border-color: var(--blue);
  box-shadow: 0 18px 35px rgb(16 42 67 / 8%);
}

.general-service-card svg {
  width: 28px;
  margin-bottom: 42px;
  color: #2d6cdf;
}

.general-service-card h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.general-service-card p {
  margin: 0;
  color: #687f9f;
  font-size: 0.94rem;
}

.principle-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  margin-bottom: 112px;
  border-radius: 22px;
  background: var(--blue-pale);
  padding: 60px;
}

.principle-panel h2 {
  margin-top: 16px;
}

.principle-list {
  display: grid;
  align-content: center;
  gap: 22px;
}

.dentist-section {
  display: grid;
  gap: 28px;
  padding-bottom: 112px;
}

.dentist-card {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  min-height: 530px;
  overflow: hidden;
  border-radius: 24px;
  background: white;
  box-shadow: 0 20px 55px rgb(16 42 67 / 8%);
}

.dentist-card.reverse .dentist-image {
  order: 2;
}

.dentist-image {
  min-height: 530px;
  background: var(--blue-pale);
}

.dentist-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dentist-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 58px clamp(38px, 6vw, 82px);
}

.role {
  color: #2b65c8;
  font-size: 0.76rem;
  font-weight: 750;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.dentist-copy h2 {
  margin: 18px 0 22px;
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 560;
  letter-spacing: -0.045em;
  line-height: 1.05;
}

.dentist-copy > p {
  color: #5d789c;
}

.dentist-copy ul {
  display: grid;
  gap: 14px;
  margin: 22px 0 0;
  padding: 22px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.dentist-copy li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: #41638b;
  font-size: 0.9rem;
}

.dentist-copy li svg {
  flex: 0 0 auto;
  width: 19px;
  color: #2d6cdf;
}

.legacy-section {
  padding-bottom: 112px;
}

.legacy-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.legacy-card {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  min-height: 420px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: white;
  box-shadow: 0 18px 45px rgb(14 45 81 / 7%);
  transition: border-color 200ms ease, box-shadow 200ms ease, transform 200ms ease;
}

.legacy-card:hover {
  border-color: #91b7ee;
  box-shadow: 0 24px 56px rgb(14 45 81 / 13%);
  transform: translateY(-4px);
}

.legacy-card img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
}

.legacy-card > div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 34px;
}

.legacy-card span,
.staff-card span {
  color: #2d6cdf;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.legacy-card h3 {
  margin: 12px 0 14px;
  font-size: 1.55rem;
}

.legacy-card p {
  color: #5c789c;
}

.legacy-card small {
  margin-top: 20px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
  color: #7187a5;
  line-height: 1.5;
}

.team-section {
  padding-block: 104px;
  background: var(--ink);
  color: white;
}

.team-heading {
  max-width: 720px;
  margin-bottom: 50px;
}

.team-heading h2 {
  margin: 18px 0 20px;
  font-size: clamp(2.3rem, 4vw, 3.5rem);
  font-weight: 560;
  letter-spacing: -0.045em;
  line-height: 1.08;
}

.team-heading p {
  color: #c1d0e2;
}

.staff-team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.staff-card {
  overflow: hidden;
  border: 1px solid #3c5e87;
  border-radius: 18px;
  background: #163a63;
  transition: border-color 200ms ease, box-shadow 200ms ease, transform 200ms ease;
}

.staff-card:hover {
  border-color: var(--sky);
  box-shadow: 0 20px 44px rgb(0 0 0 / 20%);
  transform: translateY(-5px);
}

.staff-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  filter: saturate(0.9);
  transition: filter 200ms ease, transform 300ms ease;
}

.staff-card:hover img {
  filter: saturate(1.05);
  transform: scale(1.02);
}

.staff-card > div {
  padding: 20px;
}

.staff-card h3 {
  margin: 0 0 8px;
  color: white;
  font-size: 1.05rem;
}

.staff-card span {
  color: var(--sky);
}

.history-section {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 90px;
  padding-block: 118px;
}

.history-intro h2 {
  margin: 18px 0 20px;
}

.history-intro p {
  color: #647fa2;
}

.timeline {
  display: grid;
}

.timeline article {
  display: grid;
  grid-template-columns: 120px 1fr;
  align-items: start;
  gap: 30px;
  border-top: 1px solid var(--line);
  padding: 26px 0;
}

.timeline article:last-child {
  border-bottom: 1px solid var(--line);
}

.timeline strong {
  color: #2d6cdf;
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-style: italic;
}

.timeline p {
  margin: 5px 0 0;
  color: #506d92;
}

.practice-gallery {
  padding-bottom: 118px;
}

.gallery-copy {
  display: grid;
  grid-template-columns: 0.7fr 1fr;
  gap: 60px;
  margin-bottom: 40px;
}

.gallery-copy .eyebrow {
  grid-column: 1 / -1;
}

.gallery-copy p {
  align-self: end;
  margin: 0;
  color: #617ca0;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  grid-template-rows: 240px 240px;
  gap: 14px;
}

.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 18px;
  filter: saturate(0.88);
  transition: filter 220ms ease, transform 220ms ease;
}

.gallery-grid img:hover {
  transform: scale(0.99);
  filter: saturate(1.05);
}

.gallery-grid img:first-child {
  grid-row: 1 / 3;
}

.referral-overview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  padding-bottom: 112px;
}

.referral-value h2,
.referral-faq h2 {
  margin: 18px 0 22px;
  font-size: clamp(2.1rem, 3.7vw, 3.3rem);
  font-weight: 560;
  letter-spacing: -0.045em;
  line-height: 1.08;
}

.referral-value p {
  margin-bottom: 28px;
  color: #5c789c;
}

.indication-panel {
  border-radius: 22px;
  background: var(--blue-pale);
  padding: 42px;
}

.indication-panel > div {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 26px;
  font-weight: 750;
}

.indication-panel > div svg {
  color: #2d6cdf;
}

.indication-panel ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.indication-panel li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #3b5f89;
}

.indication-panel li svg {
  flex: 0 0 auto;
  width: 17px;
  color: #2d6cdf;
}

.referral-process {
  padding-block: 108px;
  background: var(--ink);
  color: white;
}

.referral-process .section-heading h2 {
  margin-top: 16px;
}

.referral-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.referral-steps article {
  min-height: 330px;
  border: 1px solid #43668f;
  border-radius: 18px;
  padding: 34px;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.referral-steps article:hover {
  transform: translateY(-5px);
  border-color: var(--sky);
  background: #174a88;
}

.referral-steps article > span {
  color: var(--sky);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
}

.referral-steps h3 {
  margin: 82px 0 14px;
  font-size: 1.4rem;
}

.referral-steps p {
  margin: 0;
  color: #c1d0e2;
}

.referral-faq {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 80px;
  padding-block: 112px;
}

.referral-faq > div > p {
  color: #647fa2;
}

.faq-list {
  border-top: 1px solid var(--line);
}

.faq-list details {
  margin: 0;
  border-bottom: 1px solid var(--line);
  padding: 0;
}

.faq-list summary {
  padding-block: 24px;
  color: var(--ink);
  cursor: pointer;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none !important;
}

.faq-list summary:hover {
  color: #2569d8;
}

.faq-list details > p {
  margin: 0;
  padding: 0 0 24px;
  color: #5c789c;
  font-size: 0.96rem;
}

.referral-cta {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  margin-bottom: 112px;
  border-radius: 22px;
  background: #174a88;
  padding: 28px 38px;
  color: white;
}

.referral-cta > svg {
  width: 34px;
  height: 34px;
  color: var(--sky);
}

.referral-cta span {
  color: #a8bad3;
  font-size: 0.75rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.referral-cta h2 {
  margin: 6px 0 0;
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  font-weight: 560;
  letter-spacing: -0.035em;
}

.contact-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding-bottom: 92px;
}

.contact-card {
  position: relative;
  display: flex;
  min-height: 260px;
  flex-direction: column;
  align-items: flex-start;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: white;
  padding: 30px;
  transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease, background 200ms ease;
}

.contact-card:hover {
  transform: translateY(-7px);
  border-color: var(--blue);
  box-shadow: 0 20px 40px rgb(16 42 67 / 10%);
}

.contact-card.primary {
  background: var(--sky);
}

.contact-card.primary:hover {
  background: #c9e6ff;
}

.contact-card > svg:first-child {
  width: 28px;
  height: 28px;
  margin-bottom: auto;
  color: #2569d8;
}

.contact-card > span {
  margin-top: 46px;
  color: #6e85a5;
  font-size: 0.73rem;
  font-weight: 750;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.contact-card strong {
  margin: 6px 0 8px;
  font-size: 1.08rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.contact-card small {
  color: #7187a6;
}

.contact-arrow {
  position: absolute;
  top: 28px;
  right: 28px;
  width: 18px !important;
  transition: transform 180ms ease;
}

.contact-card:hover .contact-arrow {
  transform: translate(3px, -3px);
}

.visit-layout {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  min-height: 540px;
  overflow: hidden;
  border-radius: 24px;
  background: white;
  box-shadow: 0 20px 55px rgb(16 42 67 / 8%);
}

.hours-panel {
  padding: 56px;
  background: var(--ink);
  color: white;
}

.hours-panel > svg {
  width: 38px;
  height: 38px;
  margin-bottom: 36px;
  color: var(--sky);
}

.hours-panel h2 {
  margin: 18px 0 32px;
  font-size: clamp(2rem, 3.6vw, 3rem);
  font-weight: 560;
  letter-spacing: -0.04em;
  line-height: 1.08;
}

.hours-panel dl {
  margin: 0 0 28px;
}

.hours-panel dl div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid #456891;
  padding: 16px 0;
}

.hours-panel dl div:last-child {
  border-bottom: 1px solid #456891;
}

.hours-panel dt,
.hours-panel dd {
  margin: 0;
}

.hours-panel dd {
  color: var(--sky);
  font-weight: 750;
}

.hours-panel > p {
  margin: 0;
  color: #bdcce0;
  font-size: 0.9rem;
}

.map-panel {
  position: relative;
  display: grid;
  min-height: 540px;
  place-items: center;
  overflow: hidden;
  background: #e7eef8;
}

.map-grid {
  position: absolute;
  inset: -10%;
  transform: rotate(-8deg);
  background-image:
    linear-gradient(90deg, transparent 49.8%, #c5d4e8 50%, transparent 50.2%),
    linear-gradient(transparent 49.8%, #c5d4e8 50%, transparent 50.2%);
  background-size: 90px 90px;
}

.map-grid::before,
.map-grid::after {
  position: absolute;
  inset: 20% -10%;
  transform: rotate(18deg);
  border-top: 20px solid #d0deef;
  border-bottom: 6px solid #d0deef;
  content: "";
}

.map-grid::after {
  inset: -5% 45%;
  transform: rotate(-28deg);
  border-width: 10px 0 0 12px;
  border-color: #cbd9ec;
  border-style: solid;
}

.map-pin {
  z-index: 1;
  display: grid;
  width: 62px;
  height: 62px;
  place-items: center;
  border: 8px solid rgb(255 255 255 / 70%);
  border-radius: 50% 50% 50% 8px;
  background: var(--ink);
  color: var(--sky);
  transform: rotate(-45deg);
  box-shadow: 0 12px 30px rgb(16 42 67 / 22%);
}

.map-pin svg {
  width: 24px;
  transform: rotate(45deg);
}

.map-card {
  position: absolute;
  right: 24px;
  bottom: 24px;
  left: 24px;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 4px 20px;
  border-radius: 16px;
  background: rgb(255 255 255 / 95%);
  padding: 22px 24px;
  box-shadow: 0 14px 35px rgb(16 42 67 / 12%);
}

.map-card strong,
.map-card span {
  grid-column: 1;
}

.map-card span {
  color: #687f9f;
  font-size: 0.9rem;
}

.map-card .wp-block-buttons {
  grid-column: 2;
  grid-row: 1 / 3;
}

.prepare-section {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 90px;
  padding-block: 112px;
}

.prepare-section h2 {
  margin: 18px 0 0;
  font-size: clamp(2.1rem, 3.7vw, 3.3rem);
  font-weight: 560;
  letter-spacing: -0.045em;
  line-height: 1.08;
}

.prepare-list {
  display: grid;
  align-content: center;
  gap: 20px;
}

.prepare-list p {
  border-bottom: 1px solid var(--line);
  padding-bottom: 18px;
}

.parking-panel {
  display: grid;
  grid-template-columns: 0.6fr 1.4fr;
  gap: 60px;
  margin-bottom: 112px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: white;
  padding: 48px;
}

.parking-panel > div:first-child {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
  color: #2d6cdf;
  font-size: 0.76rem;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.parking-panel h2 {
  margin-bottom: 14px;
  font-size: 1.8rem;
}

.parking-panel p {
  margin: 0;
  color: #5c789c;
}

.legal-page {
  max-width: 880px;
  padding-block: 88px 112px;
}

.legal-page h1 {
  margin: 18px 0 44px;
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  font-weight: 560;
  letter-spacing: -0.05em;
}

.legal-page h2 {
  margin: 42px 0 14px;
  font-size: 1.35rem;
}

.legal-page p,
.legal-page li {
  color: #5a7599;
}

.legal-note {
  border-left: 4px solid var(--blue);
  background: var(--blue-pale);
  padding: 18px 22px;
}

.site-footer {
  background: #0a1f38;
  color: white;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.25fr 1fr 0.7fr;
  gap: 70px;
  width: min(1220px, calc(100% - 64px));
  margin-inline: auto;
  padding-block: 70px 58px;
}

.footer-intro {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.footer-mark {
  border-color: rgb(255 255 255 / 50%);
  background: linear-gradient(145deg, #ffffff, #b9ddff);
  color: #174a88;
  box-shadow: 0 0 0 4px rgb(158 208 255 / 12%);
}

.footer-mark span:last-child {
  color: #2d6cdf;
}

.footer-intro strong {
  font-size: 1.02rem;
}

.footer-intro p {
  max-width: 360px;
  margin: 8px 0 0;
  color: #afc1d8;
  font-size: 0.9rem;
}

.footer-contact {
  display: grid;
  align-content: start;
  gap: 12px;
}

.footer-contact a {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #cbd9eb;
  font-size: 0.88rem;
  transition: color 180ms ease, transform 180ms ease;
}

.footer-contact a:hover {
  transform: translateX(4px);
  color: var(--sky);
}

.footer-contact svg,
.footer-hours svg {
  flex: 0 0 auto;
  width: 17px;
  color: var(--sky);
}

.footer-hours > span {
  display: flex;
  gap: 10px;
  font-size: 0.8rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-hours p {
  margin: 12px 0 0;
  color: #c8d7e9;
  font-size: 0.9rem;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  width: min(1220px, calc(100% - 64px));
  margin-inline: auto;
  border-top: 1px solid #34557c;
  padding-block: 22px 28px;
  color: #8ea3c1;
  font-size: 0.8rem;
}

.footer-bottom div {
  display: flex;
  gap: 24px;
}

.footer-bottom a {
  transition: color 180ms ease;
}

.footer-bottom a:hover {
  color: var(--sky);
}

@media (max-width: 1080px) {
  .header-inner {
    grid-template-columns: 1fr auto auto;
  }

  .desktop-nav {
    display: flex;
  }

  .menu-toggle {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: transparent;
    color: var(--ink);
    cursor: pointer;
  }

  .mobile-nav {
    display: grid;
    max-height: 0;
    overflow: hidden;
    background: var(--paper);
    transition: max-height 260ms ease;
  }

  .mobile-nav.open {
    max-height: 430px;
    border-top: 1px solid var(--line);
  }

  .mobile-nav nav {
    display: grid;
    width: min(100% - 48px, 1000px);
    margin-inline: auto;
    padding-block: 14px 24px;
  }

  .mobile-nav a {
    border-bottom: 1px solid var(--line);
    padding: 14px 2px;
    color: #3b5f89;
    font-weight: 700;
  }

  .mobile-nav a:hover,
  .mobile-nav a.active {
    padding-left: 8px;
    color: #2d6cdf;
  }

  .mobile-nav .mobile-call {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
    border: 0;
    border-radius: 12px;
    background: var(--blue);
    padding: 13px 16px;
    color: white;
    transition: background 180ms ease, color 180ms ease, transform 180ms ease;
  }

  .mobile-nav .mobile-call:hover {
    padding-left: 16px;
    background: #174a88;
    color: white;
    transform: translateY(-1px);
  }

  .mobile-call svg {
    width: 18px;
  }

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

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

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }

  .footer-hours {
    grid-column: 2;
  }
}

@media (max-width: 800px) {
  .section-shell,
  .footer-inner,
  .footer-bottom {
    width: min(100% - 36px, 680px);
  }

  .header-inner {
    width: calc(100% - 30px);
    min-height: 72px;
    gap: 12px;
  }

  .brand-copy small {
    display: none;
  }

  .header-call {
    display: none;
  }

  .home-hero {
    grid-template-columns: 1fr;
    gap: 48px;
    min-height: auto;
    padding-block: 58px 68px;
  }

  .hero-trust {
    grid-template-columns: 1fr;
  }

  .hero-trust > div {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .hero-trust > div:last-child {
    border-bottom: 0;
  }

  .hero-copy h1 {
    font-size: clamp(2.8rem, 12vw, 4.3rem);
  }

  .hero-visual {
    min-height: 510px;
  }

  .image-frame {
    inset: 0 0 48px 20px;
  }

  .hero-index {
    right: -4px;
  }

  .statement-section,
  .split-heading,
  .expertise-section,
  .heritage-teaser,
  .contact-band,
  .page-hero,
  .endo-grid,
  .principle-panel,
  .team-layout,
  .history-section,
  .gallery-copy,
  .referral-overview,
  .referral-faq,
  .prepare-section,
  .parking-panel {
    grid-template-columns: 1fr;
  }

  .statement-section,
  .services-section,
  .general-services,
  .expertise-section,
  .heritage-teaser,
  .team-section,
  .history-section,
  .prepare-section {
    padding-block: 78px;
  }

  .statement-section,
  .split-heading,
  .expertise-section,
  .heritage-teaser,
  .contact-band,
  .endo-grid,
  .principle-panel,
  .team-layout,
  .history-section,
  .gallery-copy,
  .referral-overview,
  .referral-faq,
  .prepare-section,
  .parking-panel {
    gap: 38px;
  }

  .service-card {
    min-height: 320px;
  }

  .expertise-image,
  .expertise-image img {
    min-height: 460px;
    height: 460px;
  }

  .process-grid,
  .referral-steps {
    grid-template-columns: 1fr;
  }

  .process-card,
  .referral-steps article {
    min-height: auto;
  }

  .process-card h3,
  .referral-steps h3 {
    margin-top: 40px;
  }

  .contact-band {
    padding: 44px 34px;
  }

  .contact-band-actions {
    align-items: flex-start;
  }

  .page-hero {
    gap: 40px;
    min-height: auto;
    padding-block: 66px 74px;
  }

  .page-hero-aside {
    min-height: 130px;
    border-top: 1px solid var(--line);
    border-left: 0;
    padding: 24px 0 0;
  }

  .endo-grid {
    padding-block: 78px;
  }

  .principle-panel {
    margin-bottom: 78px;
    padding: 42px 32px;
  }

  .dentist-card {
    grid-template-columns: 1fr;
  }

  .dentist-card.reverse .dentist-image {
    order: 0;
  }

  .dentist-image {
    min-height: 460px;
  }

  .dentist-copy {
    padding: 42px 34px 48px;
  }

  .history-section {
    padding-block: 82px;
  }

  .legacy-grid {
    grid-template-columns: 1fr;
  }

  .staff-team-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 360px 190px;
  }

  .gallery-grid img:first-child {
    grid-column: 1 / 3;
    grid-row: 1;
  }

  .practice-gallery {
    padding-bottom: 82px;
  }

  .referral-overview {
    padding-bottom: 80px;
  }

  .referral-process {
    padding-block: 78px;
  }

  .referral-faq {
    padding-block: 82px;
  }

  .referral-cta {
    grid-template-columns: auto 1fr;
    margin-bottom: 80px;
    padding: 28px 30px;
  }

  .referral-cta .text-link {
    grid-column: 2;
  }

  .contact-cards {
    grid-template-columns: 1fr;
    padding-bottom: 70px;
  }

  .contact-card {
    min-height: 225px;
  }

  .visit-layout {
    grid-template-columns: 1fr;
  }

  .parking-panel {
    margin-bottom: 80px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-hours {
    grid-column: auto;
  }
}

@media (max-width: 520px) {
  .brand-copy strong {
    font-size: 0.78rem;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .hero-copy h1,
  .page-hero h1 {
    letter-spacing: -0.045em;
    line-height: 1.03;
  }

  .hero-actions,
  .contact-band-actions {
    display: grid;
  }

  .hero-actions .wp-block-button,
  .hero-actions .wp-block-button__link,
  .contact-band-actions .wp-block-button,
  .contact-band-actions .wp-block-button__link {
    width: 100%;
  }

  .hero-trust {
    border-radius: 14px;
  }

  .hero-visual {
    min-height: 430px;
  }

  .image-frame {
    border-radius: 100px 100px 22px 22px;
  }

  .hero-note {
    width: 84%;
    padding: 20px;
  }

  .statement-section,
  .services-section,
  .general-services,
  .expertise-section,
  .heritage-teaser,
  .team-section,
  .history-section,
  .prepare-section {
    padding-block: 64px;
  }

  .service-grid,
  .general-service-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: 300px;
  }

  .expertise-image,
  .expertise-image img {
    min-height: 380px;
    height: 380px;
  }

  .heritage-figures div {
    grid-template-columns: 96px 1fr;
    padding: 20px;
  }

  .contact-band {
    padding: 36px 24px;
  }

  .endo-treatment-list article {
    grid-template-columns: 36px 1fr;
  }

  .dentist-image {
    min-height: 380px;
  }

  .dentist-copy {
    padding-inline: 24px;
  }

  .legacy-card {
    grid-template-columns: 1fr;
  }

  .legacy-card img {
    height: 320px;
    min-height: 0;
  }

  .legacy-card > div {
    padding: 28px 24px;
  }

  .staff-team-grid {
    grid-template-columns: 1fr;
  }

  .staff-card img {
    height: 300px;
  }

  .timeline article {
    grid-template-columns: 84px 1fr;
    gap: 20px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    grid-template-rows: 320px 220px 160px;
  }

  .gallery-grid img:first-child {
    grid-column: auto;
    grid-row: auto;
  }

  .indication-panel,
  .parking-panel {
    padding: 30px 24px;
  }

  .referral-cta {
    grid-template-columns: 1fr;
    padding: 24px;
  }

  .referral-cta .text-link {
    grid-column: auto;
  }

  .hours-panel {
    padding: 42px 26px;
  }

  .hours-panel dl div {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .map-card {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .map-card .wp-block-buttons {
    grid-column: 1;
    grid-row: auto;
    margin-top: 12px;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* WordPress block markup alignment */
.section-shell.alignfull,
.section-shell.wp-block-group {
  max-width: none;
}

.wp-block-post-content > .services-section,
.wp-block-post-content > .process-section,
.wp-block-post-content > .endo-feature,
.wp-block-post-content > .team-section,
.wp-block-post-content > .referral-process {
  max-width: none;
}

.wp-block-post-content > .home-hero,
.wp-block-post-content > .statement-section,
.wp-block-post-content > .expertise-section,
.wp-block-post-content > .heritage-teaser,
.wp-block-post-content > .principle-panel,
.wp-block-post-content > .dentist-section,
.wp-block-post-content > .legacy-section,
.wp-block-post-content > .history-section,
.wp-block-post-content > .practice-gallery,
.wp-block-post-content > .referral-overview,
.wp-block-post-content > .referral-faq,
.wp-block-post-content > .referral-cta,
.wp-block-post-content > .contact-cards,
.wp-block-post-content > .visit-layout,
.wp-block-post-content > .prepare-section,
.wp-block-post-content > .parking-panel,
.wp-block-post-content > .legal-page {
  max-width: none;
}

.hero-copy > *,
.page-hero-copy > *,
.expertise-copy > *,
.dentist-copy > *,
.team-heading > *,
.history-intro > *,
.referral-value > *,
.hours-panel > *,
.legal-page > * {
  margin-block-start: 0;
}

.hero-trust > div > p:first-child {
  display: block;
  margin: 0 0 12px;
  color: #2d6cdf;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.hero-trust h3 {
  margin: 0;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.25;
}

.hero-trust > div > p:last-child {
  margin: 5px 0 0;
  color: #6b7f9e;
  font-size: 0.73rem;
  line-height: 1.4;
}

.image-frame.wp-block-image,
.dentist-image.wp-block-image,
.legacy-card .wp-block-image,
.staff-card .wp-block-image {
  margin: 0;
  border-radius: 0;
}

.expertise-image.wp-block-image {
  margin: 0;
}

.expertise-image figcaption {
  position: absolute;
  right: 20px;
  bottom: 20px;
  max-width: 250px;
  margin: 0;
  border-radius: 14px;
  background: var(--sky);
  padding: 18px 20px;
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.35;
  text-align: left;
}

.service-card > *,
.process-card > *,
.general-service-card > *,
.referral-steps article > *,
.contact-card > *,
.staff-card > div > *,
.legacy-card > div > * {
  margin-block-start: 0;
}

.service-card .card-number {
  margin: 0 0 auto;
  color: #93a6c0;
  font-size: 0.74rem;
  letter-spacing: 0.14em;
}

.service-card .card-link {
  margin-top: auto;
}

.service-card .card-link a,
.text-link a,
.light-link a {
  color: inherit;
  text-decoration: none;
}

.check-list li {
  position: relative;
  padding-left: 30px;
}

.check-list li::before {
  position: absolute;
  top: 0.02em;
  left: 0;
  color: #2d6cdf;
  content: "✓";
  font-weight: 800;
}

.endo-feature .feature-symbol,
.general-service-card .feature-symbol,
.hours-panel .feature-symbol,
.contact-card .feature-symbol,
.referral-cta .feature-symbol,
.parking-panel .feature-symbol {
  margin: 0;
  color: var(--sky);
  font-family: var(--font-serif);
  font-size: 2rem;
  line-height: 1;
}

.endo-intro .feature-symbol {
  margin: 40px 0 26px;
  font-size: 3.4rem;
}

.general-service-card .feature-symbol {
  margin-bottom: 42px;
}

.hours-panel .feature-symbol {
  margin-bottom: 36px;
}

.general-service-card .feature-symbol,
.contact-card .feature-symbol,
.parking-panel .feature-symbol {
  color: #2d6cdf;
}

.dentist-card > .dentist-image {
  align-self: stretch;
}

.dentist-copy .wp-block-list {
  display: grid;
  gap: 14px;
  margin: 22px 0 0;
  padding: 22px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.dentist-copy .wp-block-list li {
  position: relative;
  padding-left: 28px;
  color: #41638b;
  font-size: 0.9rem;
}

.dentist-copy .wp-block-list li::before {
  position: absolute;
  left: 0;
  color: #2d6cdf;
  content: "✓";
  font-weight: 800;
}

.legacy-card > .wp-block-image img,
.staff-card > .wp-block-image img {
  border-radius: 0;
}

.legacy-card > div > p:first-child,
.staff-card > div > p:last-child {
  color: #2d6cdf;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.staff-card > div > p:last-child {
  margin: 0;
  color: var(--sky);
}

.timeline article > p {
  margin: 0;
}

.gallery-grid.wp-block-gallery {
  display: grid;
  align-items: stretch;
}

.gallery-grid.wp-block-gallery > .wp-block-image {
  width: 100% !important;
  height: 100%;
  margin: 0 !important;
}

.gallery-grid.wp-block-gallery > .wp-block-image:first-child {
  grid-row: 1 / 3;
}

.gallery-grid.wp-block-gallery img {
  width: 100%;
  height: 100% !important;
  object-fit: cover;
}

.referral-steps article > p:first-child {
  color: var(--sky);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
}

.indication-panel .check-list {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.referral-cta > p {
  margin: 0;
}

.contact-card {
  justify-content: flex-end;
}

.contact-card:hover,
.contact-card:focus-within {
  transform: translateY(-7px);
  border-color: var(--blue);
  box-shadow: 0 20px 40px rgb(16 42 67 / 10%);
}

.contact-card > p:nth-of-type(2) {
  margin: 46px 0 0;
  color: #6e85a5;
  font-size: 0.73rem;
  font-weight: 750;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.contact-card h3 {
  margin: 6px 0 8px;
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.contact-card h3 a {
  color: var(--ink);
  text-decoration: none;
}

.contact-card > p:last-child {
  margin: 0;
  color: #7187a6;
  font-size: 0.875rem;
}

.hours-list {
  margin: 0 0 28px;
}

.hours-list p {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin: 0;
  border-top: 1px solid #456891;
  padding: 16px 0;
}

.hours-list p:last-child {
  border-bottom: 1px solid #456891;
}

.hours-list strong {
  color: var(--sky);
}

.map-card > div:first-child p {
  margin: 0;
}

.parking-label > p {
  margin: 0;
}

.site-footer .wp-block-navigation-item__content,
.site-footer a {
  color: #cbd9eb;
  text-decoration: none;
}

.footer-intro p,
.footer-contact p,
.footer-hours p,
.footer-bottom p {
  margin: 0;
}

.footer-contact p + p {
  margin-top: 12px;
}

.footer-legal .wp-block-navigation__container {
  gap: 24px;
}

.archive-shell,
.error-page {
  padding-block: 88px 112px;
}

.archive-card {
  margin-block: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: white;
  padding: 28px;
}

@media (max-width: 1080px) {
  .desktop-nav .wp-block-navigation__responsive-container:not(.is-menu-open) {
    display: none !important;
  }

  .desktop-nav .wp-block-navigation__responsive-container-open {
    display: flex !important;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    color: var(--ink);
  }

  .desktop-nav .wp-block-navigation__responsive-container.is-menu-open {
    display: flex !important;
    background: var(--paper);
    padding: 84px 28px 32px;
  }

  .desktop-nav .wp-block-navigation__responsive-container-close {
    top: 22px;
    right: 24px;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 50%;
  }

  .desktop-nav .is-menu-open .wp-block-navigation__container {
    width: 100%;
    align-items: stretch;
    gap: 0;
  }

  .desktop-nav .is-menu-open .wp-block-navigation-item {
    border-bottom: 1px solid var(--line);
  }

  .desktop-nav .is-menu-open .wp-block-navigation-item__content {
    display: block;
    padding: 16px 2px;
    color: #3b5f89;
    font-size: 1.05rem;
    font-weight: 700;
  }
}

@media (min-width: 1081px) {
  .desktop-nav .wp-block-navigation__responsive-container-open {
    display: none !important;
  }

  .desktop-nav .wp-block-navigation__responsive-container:not(.is-menu-open) {
    display: block !important;
  }
}

@media (max-width: 800px) {
  .hero-trust > div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .gallery-grid.wp-block-gallery > .wp-block-image:first-child {
    grid-column: 1 / 3;
    grid-row: 1;
  }

  .header-inner {
    grid-template-columns: 1fr auto;
  }
}

@media (max-width: 520px) {
  .gallery-grid.wp-block-gallery > .wp-block-image:first-child {
    grid-column: auto;
    grid-row: auto;
  }

  .hours-list p {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
