/* Uptown Houston Smiles — brand tokens */
:root {
  --navy: #0b1f3b;
  --navy-deep: #050d1a;
  --gold: #c8a24a;
  /* WCAG AA: gold #c8a24a on white is ~2.4:1 — use for UI fills only, not small text on light backgrounds */
  --gold-on-light: #6b5420;
  /* Meets WCAG 2.1 AA 4.5:1 on white and on --gray-bg (#f5f5f5) for normal text */
  --blue: #3a6885;
  --charcoal: #222222;
  --gray-bg: #f5f5f5;
  --white: #ffffff;
  --cream: #f4efe6;
  --link-on-navy: #d4e8f8;
  --max: 1120px;
  --font-serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-sans: "Plus Jakarta Sans", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --focus-ring: 2px solid var(--blue);
  --focus-offset: 2px;

  /* Bootstrap theme bridge */
  --bs-primary: #0b1f3b;
  --bs-primary-rgb: 11, 31, 59;
  --bs-link-color: var(--blue);
  --bs-link-hover-color: #0b1f3b;
  --bs-body-font-family: var(--font-sans);
  --bs-body-color: var(--charcoal);
  --bs-border-radius: 0.625rem;
  --radius-card: 14px;
  --radius-panel: 20px;
  --shadow-soft: 0 4px 24px rgba(11, 31, 59, 0.06);
  --shadow-lift: 0 24px 48px rgba(11, 31, 59, 0.1);
  --bs-body-bg: var(--white);
  --bs-border-color: rgba(11, 31, 59, 0.12);
  --bs-heading-color: var(--navy);
  --bs-body-color-rgb: 34, 34, 34;

  /* Spacing scale (4px base) — use for padding/margin consistency */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-7: 1.75rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --section-y: clamp(2.75rem, 5.5vw, 4rem);
  --section-y-compact: clamp(2.25rem, 4.25vw, 3rem);
  --head-b: var(--space-8);
  --prose-gap: var(--space-4);
  --container-inset: var(--space-5);
  /* Sticky site header — keeps hash targets visible below the bar */
  --anchor-scroll-offset: 5.5rem;
  /* Subpage title + prose body share one column */
  --subpage-content-max: 48rem;
}

/* Precompiled Bootstrap .btn-* uses fixed blues — remap to brand navy / gold */
.btn-primary {
  --bs-btn-color: #fff;
  --bs-btn-bg: var(--navy);
  --bs-btn-border-color: var(--navy);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #0d2747;
  --bs-btn-hover-border-color: #0d2747;
  --bs-btn-focus-shadow-rgb: 11, 31, 59;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: #0a1a2f;
  --bs-btn-active-border-color: #0a1a2f;
  --bs-btn-disabled-color: #fff;
  --bs-btn-disabled-bg: #4a5a72;
  --bs-btn-disabled-border-color: #4a5a72;
}

.btn-outline-primary {
  --bs-btn-color: var(--navy);
  --bs-btn-border-color: rgba(11, 31, 59, 0.28);
  --bs-btn-hover-color: var(--navy);
  --bs-btn-hover-bg: transparent;
  --bs-btn-hover-border-color: var(--navy);
  --bs-btn-focus-shadow-rgb: 11, 31, 59;
  --bs-btn-active-color: var(--navy);
  --bs-btn-active-bg: rgba(11, 31, 59, 0.06);
  --bs-btn-active-border-color: var(--navy);
  --bs-btn-disabled-color: rgba(11, 31, 59, 0.45);
  --bs-btn-disabled-bg: transparent;
  --bs-btn-disabled-border-color: rgba(11, 31, 59, 0.22);
  --bs-gradient: none;
}

.hero .btn-primary {
  --bs-btn-color: #000;
  --bs-btn-bg: var(--gold);
  --bs-btn-border-color: transparent;
  --bs-btn-hover-color: #000;
  --bs-btn-hover-bg: #d4ae55;
  --bs-btn-hover-border-color: transparent;
  --bs-btn-focus-shadow-rgb: 200, 162, 74;
  --bs-btn-active-color: #000;
  --bs-btn-active-bg: #c8a24a;
  --bs-btn-active-border-color: transparent;
}

.invisalign-copy .btn-primary {
  --bs-btn-color: #000;
  --bs-btn-bg: var(--gold);
  --bs-btn-border-color: transparent;
  --bs-btn-hover-color: #000;
  --bs-btn-hover-bg: #d4ae55;
  --bs-btn-hover-border-color: transparent;
  --bs-btn-focus-shadow-rgb: 200, 162, 74;
  --bs-btn-active-color: #000;
  --bs-btn-active-bg: #c8a24a;
  --bs-btn-active-border-color: transparent;
  margin-top: var(--space-5);
}

/* Content cards — subtle navy border + soft shadow (replaces BS shadow-sm + border-0) */
.card.uh-card {
  --bs-card-bg: var(--white);
  --bs-card-border-width: 1px;
  --bs-card-border-color: rgba(11, 31, 59, 0.08);
  --bs-card-cap-bg: transparent;
  --bs-card-spacer-y: var(--space-5);
  --bs-card-spacer-x: var(--space-5);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
}

.card.uh-card.team-card,
.card.uh-card.bio-card {
  border-radius: calc(var(--radius-card) + 2px);
  box-shadow: 0 8px 28px rgba(11, 31, 59, 0.07);
}

.card.uh-card.bio-card {
  --bs-card-spacer-y: var(--space-6);
  --bs-card-spacer-x: var(--space-6);
}

.card.uh-card.testimonial-card {
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--anchor-scroll-offset);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--charcoal);
  background-color: #f8f9fb;
  background-image:
    radial-gradient(ellipse 120% 80% at 50% -20%, rgba(58, 104, 133, 0.08), transparent 55%),
    linear-gradient(180deg, #f8f9fb 0%, #ffffff 32%, #ffffff 100%);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Site-wide content image hover zoom */
.about-visual,
.service-tile-media,
.team-photo-frame,
.bio-card-photo-frame,
.service-hero-media,
.blog-single-hero-media,
.media-showcase-frame,
.wp-block-image,
.service-detail-content .wp-block-image,
.service-page .wp-block-image {
  overflow: hidden;
}

.service-hero-media,
.blog-single-hero-media {
  border-radius: var(--radius-card);
}

main img:not(.brand-logo):not(.brand-logo-horizontal):not(.footer-logo):not(.hero-backdrop-img):not(.invisalign-provider-logo):not(.insurance-logo-img),
.home-main img:not(.hero-backdrop-img):not(.hero-heading-mark img):not(.invisalign-provider-logo):not(.insurance-logo-img) {
  transition: transform 0.65s ease;
}

.about-visual:hover img,
.service-tile.card.uh-card:hover .service-tile-media img,
.team-photo-link:hover .team-photo,
.bio-card:hover .bio-card-photo-img,
.service-hero-media:hover img,
.blog-single-hero-media:hover img,
.media-showcase-frame:hover img,
.wp-block-image:hover img,
.service-detail-content .wp-block-image:hover img,
.service-page .wp-block-image:hover img,
main figure:hover > img,
main .entry-content img:hover,
main .legal-prose img:hover {
  transform: scale(1.03);
}

@media (prefers-reduced-motion: reduce) {
  main img:not(.brand-logo):not(.brand-logo-horizontal):not(.footer-logo):not(.hero-backdrop-img):not(.invisalign-provider-logo):not(.insurance-logo-img),
  .home-main img:not(.hero-backdrop-img):not(.hero-heading-mark img):not(.invisalign-provider-logo):not(.insurance-logo-img) {
    transition: none;
  }

  .about-visual:hover img,
  .service-tile.card.uh-card:hover .service-tile-media img,
  .team-photo-link:hover .team-photo,
  .bio-card:hover .bio-card-photo-img,
  .service-hero-media:hover img,
  .blog-single-hero-media:hover img,
  .media-showcase-frame:hover img,
  .wp-block-image:hover img,
  .service-detail-content .wp-block-image:hover img,
  .service-page .wp-block-image:hover img,
  main figure:hover > img,
  main .entry-content img:hover,
  main .legal-prose img:hover {
    transform: none;
  }
}

a {
  color: var(--blue);
}

a:hover {
  text-decoration-thickness: 2px;
}

a:focus,
button:focus {
  outline: none;
}

a:focus-visible,
button:focus-visible,
.btn:focus-visible {
  outline: var(--focus-ring);
  outline-offset: var(--focus-offset);
}

.btn-primary:focus-visible,
.btn-gold:focus-visible {
  outline-color: var(--gold);
  outline-width: 3px;
}

.btn-header:focus-visible {
  outline-color: var(--blue);
  outline-width: 3px;
}

.btn-outline-light:focus-visible {
  outline-color: var(--white);
  outline-width: 3px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

#main:focus {
  outline: none;
}

#main:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: var(--space-3) var(--space-4);
  background: var(--navy);
  color: var(--white);
  font-weight: 600;
}

.skip-link:focus,
.skip-link:focus-visible {
  left: 1rem;
  top: 1rem;
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

h2, h3{
	font-family: var(--font-serif);
}

/* Bootstrap .container — cap width to brand layout */
.container {
  width: 100%;
  max-width: min(100% - 2 * var(--container-inset), var(--max));
  margin-inline: auto;
  padding-inline: var(--container-inset);
}

.site-header .container-fluid {
  max-width:1200px;
}

/* Header — white bar + Bootstrap navbar */
.site-header.navbar {
  z-index: 1030;
  background: #ffffff !important;
  border-bottom: 1px solid rgba(11, 31, 59, 0.1);
  box-shadow: 0 2px 14px rgba(11, 31, 59, 0.06);
}

/* Cancel global scroll-padding when the fragment is the header itself */
.site-header#top {
  scroll-margin-top: calc(-1 * var(--anchor-scroll-offset));
}

@media (max-width: 991.98px) {
  .site-header .navbar-collapse {
    margin-top: var(--space-3);
    padding-top: var(--space-3);
    border-top: 1px solid rgba(11, 31, 59, 0.08);
  }

  .site-header .navbar-nav {
    align-items: center;
    text-align: center;
  }

  .site-header .navbar-nav .nav-link {
    text-align: center;
  }

  .site-header .navbar-nav .btn-header {
    margin-inline: auto;
  }

  .site-navbar-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

}

/* ── Mobile sticky CTA bar ── */
.mobile-cta-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1029;
}

.mobile-cta-btn {
  flex: 1 1 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-2);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  text-align: center;
  white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.mobile-cta-call {
  color: var(--navy);
  background: var(--gold);
  box-shadow: 0 2px 8px rgba(200, 162, 74, 0.35);
}

.mobile-cta-call:hover,
.mobile-cta-call:focus {
  color: var(--navy);
  background: #d4ae55;
  text-decoration: none;
}

.mobile-cta-message {
  color: #fff;
  background: var(--navy);
}

.mobile-cta-message:hover,
.mobile-cta-message:focus {
  color: #fff;
  border-color: #fff;
  text-decoration: none;
}

.mobile-cta-btn:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

/* Push page content above the sticky bar on mobile only */
@media (max-width: 991.98px) {
  #main,
  .site-main {
    padding-bottom: calc(4.5rem + env(safe-area-inset-bottom));
  }
}

@media (min-width: 992px) {
  #main,
  .site-main {
    padding-bottom: 0;
  }

  .mobile-cta-bar {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mobile-cta-btn {
    transition: none;
  }
}

@media (min-width: 992px) {
  .site-header .navbar-collapse {
    flex-grow: 1 !important;
    min-width: 0;
  }

  .site-navbar-main {
    display: flex;
    flex-direction: row;
    align-items: center;
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
  }

  .site-navbar-links {
    flex: 1 1 auto;
    display: flex;
    justify-content: center;
    min-width: 0;
  }

  .site-navbar-links .navbar-nav {
    margin-inline: auto;
  }

  .site-navbar-cta {
    flex: 0 0 auto;
    gap: var(--space-2);
    margin-left: var(--space-3);
  }

  .site-header .site-navbar-cta .btn-header {
    margin-inline: 0;
  }
}

.site-header .navbar-brand {
  margin-right: var(--space-6);
  flex-shrink: 0;
}

.site-header .navbar-brand.navbar-brand-horizontal {
  position: relative;
  z-index: 1;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 0.38rem;
  line-height: 0;
  overflow: hidden;
  background-image: none !important;
}

.site-header .navbar-brand.navbar-brand-horizontal .brand-logo-horizontal {
  display: block;
  width: auto;
  max-width: min(18rem, 48vw);
  max-height: 4.25rem;
  height: auto;
  object-fit: contain;
}

@media (min-width: 1200px) {
  .site-header .navbar-brand.navbar-brand-horizontal .brand-logo-horizontal {
    max-width: 19.5rem;
    max-height: 4.5rem;
  }
}

.site-header .navbar-brand.navbar-brand-horizontal:focus-visible {
  outline: var(--focus-ring);
  outline-offset: 3px;
  border-radius: 0.38rem;
}

.site-header .nav-link {
  color: var(--navy) !important;
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 0.01em;
}

.site-header .nav-link:hover,
.site-header .nav-link:focus {
  color: var(--blue) !important;
}

.site-header .nav-link.active,
.site-header .nav-link[aria-current="page"],
.site-header .nav-services-toggle.active {
  color: var(--navy) !important;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.2em;
}

/* Services submenu — native <details> (works in mobile nav; no Bootstrap dropdown) */
.nav-services-menu {
  position: relative;
}

.nav-services-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  list-style: none;
  cursor: pointer;
  user-select: none;
}

.nav-services-toggle::-webkit-details-marker {
  display: none;
}

.nav-services-toggle::after {
  content: "";
  width: 0.45em;
  height: 0.45em;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
  margin-top: -0.15em;
}

.nav-services-menu[open] .nav-services-toggle::after {
  transform: rotate(-135deg);
  margin-top: 0.1em;
}

.nav-services-submenu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-services-link {
  display: block;
  padding: var(--space-3) var(--space-4);
  color: var(--navy);
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  line-height: 1.4;
}

.nav-services-link:hover,
.nav-services-link:focus {
  color: var(--blue);
  background: rgba(58, 104, 133, 0.08);
}

.nav-services-link.active,
.nav-services-link[aria-current="page"] {
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

@media (max-width: 991.98px) {
  .nav-services-menu {
    width: 100%;
  }

  .nav-services-toggle {
    width: 100%;
  }

  .nav-services-submenu {
    margin-top: var(--space-2);
    padding: var(--space-2) 0;
    border-radius: var(--bs-border-radius);
    background: rgba(11, 31, 59, 0.04);
    text-align: center;
  }

  .nav-services-link {
    white-space: normal;
  }
}

@media (min-width: 992px) {
  .nav-services-submenu {
    display: none;
    position: absolute;
    top: calc(100% + var(--space-2));
    left: 50%;
    transform: translateX(-50%);
    min-width: 15rem;
    max-width: 20rem;
    padding: var(--space-2) 0;
    border: 1px solid rgba(11, 31, 59, 0.1);
    border-radius: var(--bs-border-radius);
    background: var(--white);
    box-shadow: var(--shadow-soft);
    z-index: 1040;
  }

  .nav-services-menu[open] .nav-services-submenu {
    display: block;
  }
}

.site-header .navbar-toggler {
  border-color: rgba(11, 31, 59, 0.22);
}

.site-header .navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(58, 104, 133, 0.22);
}

.site-header .btn-header {
  --bs-btn-padding-y: 0.8rem;
  --bs-btn-padding-x: 1rem;
  --bs-btn-font-size: 0.9375rem;
  --bs-btn-line-height: 1.25;
  --bs-btn-border-radius: 999px;
  min-height: 2.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow:
    0 2px 8px rgba(11, 31, 59, 0.22),
    0 1px 0 rgba(255, 255, 255, 0.12) inset;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.site-header .btn-header:hover {
  box-shadow:
    0 4px 16px rgba(11, 31, 59, 0.28),
    0 1px 0 rgba(255, 255, 255, 0.14) inset;
  transform: translateY(-1px);
}

.site-header .btn-header:active {
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .site-header .btn-header {
    transition: none;
  }

  .site-header .btn-header:hover {
    transform: none;
  }
}

.btn-header {
  --bs-btn-color: #fff;
  --bs-btn-bg: var(--navy);
  --bs-btn-border-color: var(--navy);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #0d2747;
  --bs-btn-hover-border-color: #0d2747;
  --bs-btn-focus-shadow-rgb: 11, 31, 59;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: #0a1a2f;
  --bs-btn-active-border-color: #0a1a2f;
  padding-inline: var(--space-4);
  font-weight: 600;
}

.btn-gold {
  --bs-btn-color: #000;
  --bs-btn-bg: var(--gold);
  --bs-btn-border-color: transparent;
  --bs-btn-hover-color: #000;
  --bs-btn-hover-bg: #d4ae55;
  --bs-btn-hover-border-color: transparent;
  --bs-btn-focus-shadow-rgb: 200, 162, 74;
  --bs-btn-active-color: #000;
  --bs-btn-active-bg: #c8a24a;
  --bs-btn-active-border-color: transparent;
  font-weight: 600;
}

.btn-outline-light {
  --bs-btn-color: rgba(255, 255, 255, 0.95);
  --bs-btn-border-color: rgba(255, 255, 255, 0.38);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: rgba(255, 255, 255, 0.08);
  --bs-btn-hover-border-color: #fff;
  --bs-btn-focus-shadow-rgb: 220, 220, 230;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: rgba(255, 255, 255, 0.12);
  --bs-btn-active-border-color: #fff;
  --bs-gradient: none;
  font-weight: 600;
}

.site-header .nav-item .btn-header {
  border-width: 0;
}

/* Nav CTA only — rounded rectangle */
.site-navbar-cta {
  margin-block: var(--space-4);
  padding-block: var(--space-4);
}

.site-header .site-navbar-cta .btn-header {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  --bs-btn-padding-x: 0.9rem;
  --bs-btn-padding-y: 0.65rem;
  --bs-btn-font-size: 0.9375rem;
  --bs-btn-border-radius: 0.5rem;
  min-height: 2.5rem;
  min-width: auto;
}

@media (min-width: 992px) and (max-width: 1199.98px) {
  .site-header .navbar-brand {
    margin-right: var(--space-4);
  }

  .site-header .navbar-brand.navbar-brand-horizontal .brand-logo-horizontal {
    max-width: 13.5rem;
    max-height: 3.35rem;
  }

  .site-header .site-navbar-links .navbar-nav {
    gap: 0.2rem !important;
  }

  .site-header .nav-link {
    padding-inline: 0.5rem;
  }

  .site-header .site-navbar-cta .btn-header {
    --bs-btn-padding-x: 0.75rem;
  }
}

.site-header .site-navbar-cta .btn-header-message {
  --bs-btn-color: var(--navy);
  --bs-btn-bg: #fff;
  --bs-btn-border-color: rgba(11, 31, 59, 0.22);
  --bs-btn-hover-color: var(--navy);
  --bs-btn-hover-bg: rgba(58, 104, 133, 0.08);
  --bs-btn-hover-border-color: rgba(58, 104, 133, 0.42);
  --bs-btn-active-color: var(--navy);
  --bs-btn-active-bg: rgba(58, 104, 133, 0.12);
  --bs-btn-active-border-color: rgba(58, 104, 133, 0.5);
  border-width: 1px;
  box-shadow: none;
}

@media (max-width: 991.98px) {
  .site-navbar-cta {
    gap: var(--space-3);
    margin-block: var(--space-5) var(--space-4);
    padding-block: var(--space-5) var(--space-4);
    border-top: 1px solid rgba(11, 31, 59, 0.08);
    width: 100%;
    justify-content: center;
  }
}

@media (min-width: 992px) {
  .site-navbar-cta {
    margin-block: 0;
    padding-block: var(--space-2);
    padding-left: var(--space-2);
    border-top: 0;
  }
}

/* Hero — photo backdrop + luxe overlay */
.home-main {
  overflow: hidden;
}

.home-main > .section,
.home-main > .hero,
.home-main > .wp-block-html > .section,
.home-main > .wp-block-html > .hero,
.home-main .elementor-widget-container > .section,
.home-main .elementor-widget-container > .hero {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.home-main .hero-heading-mark .wp-block-image,
.home-main .about-visual.wp-block-image {
  margin: 0;
}

.home-main .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--bs-border-radius);
  font-family: var(--font-sans);
  font-weight: 600;
  line-height: 1.5;
  text-decoration: none;
  transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.home-main .uhs-button-primary .wp-block-button__link {
  color: #fff;
  background: var(--navy);
  border: 1px solid var(--navy);
}

.home-main .uhs-button-primary .wp-block-button__link:hover {
  color: #fff;
  background: #0d2747;
  border-color: #0d2747;
}

.home-main .hero .uhs-button-primary .wp-block-button__link,
.home-main .invisalign-band .uhs-button-primary .wp-block-button__link {
  color: #000;
  background: var(--gold);
  border-color: transparent;
}

.home-main .hero .uhs-button-primary .wp-block-button__link:hover,
.home-main .invisalign-band .uhs-button-primary .wp-block-button__link:hover {
  color: #000;
  background: #d4ae55;
}

.home-main .uhs-button-outline .wp-block-button__link {
  color: var(--navy);
  background: transparent;
  border: 1px solid rgba(11, 31, 59, 0.28);
}

.home-main .uhs-button-outline .wp-block-button__link:hover {
  color: var(--navy);
  border-color: var(--navy);
}

.home-main #services .row,
.subpage-main .services-tiles .row {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-4);
  margin-left: 0;
  margin-right: 0;
}

.home-main #services .row > .col,
.subpage-main .services-tiles .row > .col {
  width: auto !important;
  max-width: none !important;
  padding: 0 !important;
}

@media (max-width: 991.98px) {
  .home-main #services .row,
  .subpage-main .services-tiles .row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575.98px) {
  .home-main #services .row,
  .subpage-main .services-tiles .row {
    grid-template-columns: 1fr;
  }
}

.editor-styles-wrapper .hero {
  background:
    radial-gradient(ellipse 100% 80% at 50% 0%, rgba(200, 162, 74, 0.18), transparent 52%),
    linear-gradient(115deg, rgba(5, 13, 26, 0.94) 0%, rgba(11, 31, 59, 0.82) 42%, rgba(5, 13, 26, 0.58) 100%),
    url("https://images.unsplash.com/photo-1629909613654-28e377c37b09?auto=format&fit=crop&w=1920&q=85") center 35% / cover;
}

.editor-styles-wrapper .hero .hero-backdrop {
  display: none;
}

.editor-styles-wrapper .hero-heading-mark .wp-block-image {
  width: 100%;
  height: 100%;
}

.editor-styles-wrapper .hero-heading-mark .wp-block-image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain;
}

.editor-styles-wrapper .hero-copy > p.hero-brand,
.editor-styles-wrapper .hero-copy > .wp-block-paragraph.hero-brand {
  display: none !important;
}

.editor-styles-wrapper .hero .wp-block-group.hero-heading-row,
.editor-styles-wrapper .hero .wp-block-group.hero-heading-row.is-layout-flex {
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  column-gap: var(--space-5);
}

.editor-styles-wrapper .hero .wp-block-group.hero-heading-text.is-layout-flex {
  flex-direction: column !important;
  align-items: flex-start !important;
}

.editor-styles-wrapper .hero .uhs-button-primary .wp-block-button__link {
  color: #000;
  background: var(--gold);
  border-color: transparent;
}

.editor-styles-wrapper .hero .uhs-button-primary .wp-block-button__link:hover {
  color: #000;
  background: #d4ae55;
}

.editor-styles-wrapper .hero .uhs-button-outline .wp-block-button__link {
  color: var(--navy);
  background: transparent;
  border: 1px solid rgba(11, 31, 59, 0.28);
}

.editor-styles-wrapper .hero .contact-card.contact-card--hero,
.editor-styles-wrapper .hero .contact-card.contact-card--hero p,
.editor-styles-wrapper .hero .contact-card.contact-card--hero dt,
.editor-styles-wrapper .hero .contact-card.contact-card--hero dd {
  color: rgba(11, 31, 59, 0.9);
}

.editor-styles-wrapper .hero .contact-card.contact-card--hero .contact-card-title,
.editor-styles-wrapper .hero .contact-card.contact-card--hero .contact-card-phone a {
  color: var(--navy);
}

.hero {
  position: relative;
  isolation: isolate;
  padding: clamp(var(--space-10), 7vw, var(--space-12)) 0 var(--section-y);
  overflow: hidden;
  color: var(--cream);
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero-backdrop-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  transform: scale(1.03);
}

.hero-backdrop-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 100% 80% at 50% 0%, rgba(200, 162, 74, 0.18), transparent 52%),
    linear-gradient(115deg, rgba(5, 13, 26, 0.94) 0%, rgba(11, 31, 59, 0.78) 42%, rgba(5, 13, 26, 0.45) 100%);
}

.hero-backdrop-grain {
  position: absolute;
  inset: 0;
  opacity: 0.055;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

.hero-inner {
  position: relative;
  z-index: 1;
}

.hero .hero-row {
  position: relative;
  z-index: 1;
}

/* Hero lockup — circular logo | brand + H1 */
.hero-heading-row,
.hero .wp-block-group.hero-heading-row,
.hero .hero-heading-row.is-layout-flex,
.hero .wp-block-group.hero-heading-row.is-layout-flex {
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-items: center;
  justify-content: start;
  column-gap: var(--space-5);
  row-gap: 0.125rem;
  margin: 0 0 var(--space-4);
  width: 100%;
}

.hero-heading-mark,
.hero .hero-heading-row > .hero-heading-mark,
.hero .hero-heading-row > .wp-block-group.hero-heading-mark {
  grid-column: 1;
  grid-row: 1 / -1;
  align-self: center;
  width: clamp(8rem, 12.5vw, 10.25rem);
  height: clamp(8rem, 12.5vw, 10.25rem);
  margin: 0;
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.28);
}

.hero-heading-text,
.hero .hero-heading-row > .hero-heading-text,
.hero .hero-heading-row > .wp-block-group.hero-heading-text {
  grid-column: 2;
  grid-row: 1 / -1;
  display: flex !important;
  flex-direction: column !important;
  flex-wrap: nowrap !important;
  align-items: flex-start !important;
  justify-content: flex-start !important;
  gap: 0.125rem;
  min-width: 0;
  width: 100%;
  max-width: 42rem;
}

/* Block editor: brand + H1 sometimes sit as direct siblings in the heading row */
.hero .hero-heading-row > .hero-brand,
.hero .hero-heading-row > p.hero-brand,
.hero .hero-heading-row > .wp-block-paragraph.hero-brand {
  grid-column: 2;
  grid-row: 1;
  width: 100%;
  max-width: none;
  margin: 0;
}

.hero .hero-heading-row > .hero-heading,
.hero .hero-heading-row > h1.hero-heading,
.hero .hero-heading-row > .wp-block-heading.hero-heading {
  grid-column: 2;
  grid-row: 1 / -1;
  width: 100%;
  max-width: none;
  margin: 0;
  min-width: 0;
}

.hero .hero-heading-text.is-layout-flex,
.hero .wp-block-group.hero-heading-text.is-layout-flex {
  flex-direction: column !important;
  align-items: flex-start !important;
}

.hero-heading-mark,
.hero .hero-heading-row > .wp-block-group.hero-heading-mark {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 50%;
  background-color: #ffffff;
  border: 1px solid rgba(11, 31, 59, 0.1);
  overflow: hidden;
}

.hero-heading-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

@media (max-width: 991.98px) {
  /* Stack and center — flex avoids grid-row overlap from block editor markup */
  .hero-heading-row,
  .hero .wp-block-group.hero-heading-row,
  .hero .wp-block-group.hero-heading-row.is-layout-flex {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-4);
    width: 100%;
    max-width: 36rem;
    margin-inline: auto;
    text-align: center;
  }

  .hero-heading-row > *,
  .hero .hero-heading-row > .wp-block-group,
  .hero .hero-heading-row > .hero-heading-mark,
  .hero .hero-heading-row > .wp-block-group.hero-heading-mark,
  .hero .hero-heading-row > .hero-heading-text,
  .hero .hero-heading-row > .wp-block-group.hero-heading-text,
  .hero .hero-heading-row > .hero-brand,
  .hero .hero-heading-row > .hero-heading,
  .hero .hero-heading-row > h1.hero-heading,
  .hero .hero-heading-row > .wp-block-heading.hero-heading {
    grid-column: unset;
    grid-row: unset;
    width: 100%;
    max-width: 36rem;
    margin-inline: auto;
  }

  .hero-heading-mark,
  .hero .hero-heading-row > .hero-heading-mark,
  .hero .hero-heading-row > .wp-block-group.hero-heading-mark {
    flex-shrink: 0;
    width: clamp(7.25rem, 30vw, 9rem);
    height: clamp(7.25rem, 30vw, 9rem);
    max-width: none;
  }

  .hero-heading-text,
  .hero .hero-heading-row > .hero-heading-text,
  .hero .hero-heading-row > .wp-block-group.hero-heading-text {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: var(--space-3);
    text-align: center;
  }

  /* Duplicate brand/H1 as direct siblings when already inside hero-heading-text */
  .hero .hero-heading-row:has(.hero-heading-text) > .hero-brand,
  .hero .hero-heading-row:has(.hero-heading-text) > p.hero-brand,
  .hero .hero-heading-row:has(.hero-heading-text) > .wp-block-paragraph.hero-brand,
  .hero .hero-heading-row:has(.hero-heading-text) > .hero-heading,
  .hero .hero-heading-row:has(.hero-heading-text) > h1.hero-heading,
  .hero .hero-heading-row:has(.hero-heading-text) > .wp-block-heading.hero-heading {
    display: none !important;
  }

  .hero-heading-text .hero-brand,
  .hero-heading-text p.hero-brand,
  .hero-heading-text .hero-heading,
  .hero-heading-text h1.hero-heading {
    white-space: normal;
    text-align: center;
    width: 100%;
  }

  .hero-copy,
  .hero .wp-block-group.hero-copy {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
  }

  .hero-eyebrow {
    text-align: center;
    width: 100%;
  }

  .hero-tagline,
  .hero .lead {
    margin-inline: auto;
    max-width: 36rem;
  }

  .hero-actions {
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
  }

  .hero-contact-col,
  .hero .wp-block-group.hero-contact-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
  }
}

/* Practice name directly above the hero H1 (block editor) */
.hero-heading-text .hero-brand,
.hero-heading-text p.hero-brand,
.hero .hero-heading-row > .hero-brand,
.hero .hero-heading-row > p.hero-brand {
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 2.8vw, 1.75rem);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0;
  line-height: 1.15;
  width: 100%;
  max-width: none;
}

@media (min-width: 992px) {
  .hero-heading-text .hero-brand,
  .hero-heading-text p.hero-brand,
  .hero .hero-heading-row > .hero-brand,
  .hero .hero-heading-row > p.hero-brand {
    white-space: nowrap;
    letter-spacing: 0.1em;
  }
}

/* Block editor leftovers: duplicate brand outside the heading row */
.hero-copy > p.hero-brand,
.hero-copy > .wp-block-paragraph.hero-brand {
  display: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .hero-backdrop-img {
    transform: none;
  }
}

.hero-eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 var(--space-4);
}

.hero .hero-heading {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(2.45rem, 6vw, 3.65rem);
  line-height: 1.08;
  color: var(--white);
  margin: 0;
  min-width: 0;
  text-align: inherit;
}

.hero-accent {
  font-style: italic;
  font-weight: 500;
  color: var(--gold);
}

.hero-tagline {
  font-size: 0.95rem;
  font-weight: 600;
  color: rgba(244, 239, 230, 0.92);
  margin: 0 0 var(--space-3);
  letter-spacing: 0.02em;
}

.hero .lead {
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.65;
  color: rgba(244, 239, 230, 0.95);
  max-width: 36rem;
  margin: 0 0 var(--space-6);
}

.hero-actions {
  display: flex;
  gap: var(--space-3);
  margin-bottom: 0;
}

.hero .btn-outline-light {
  --bs-btn-border-color: rgba(255, 255, 255, 0.38);
  --bs-btn-hover-border-color: rgba(255, 255, 255, 0.75);
}

.eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #3d6d8c;
  margin: 0 0 var(--space-3);
}

/* Sections */
.section {
  padding: var(--section-y) 0;
  background-color: var(--white);
}

.section-tight {
  padding-top: 0;
}

.section-alt {
  background: linear-gradient(180deg, #f0f2f6 0%, #f5f6f9 100%);
}

.section-navy {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.92);
}

.section-navy a {
  color: var(--link-on-navy);
  text-decoration-thickness: 1px;
}

.section-navy a:hover {
  color: var(--white);
}

.address-link {
  text-decoration: none;
  font-style: normal;
}

.address-link:hover {
  text-decoration: underline;
}

.section-head {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto var(--head-b);
}

.section-head-left {
  text-align: left;
  margin-left: 0;
}

.section-head-light h2 {
  color: var(--white);
}

.section-head-light .section-sub {
  color: rgba(255, 255, 255, 0.88);
}

.section-head h2 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  color: var(--navy);
  margin: 0 0 var(--space-3);
}

.section-sub {
  margin: 0;
  color: #3d3d3d;
  font-size: 1.05rem;
}

/* Values (Bootstrap row + .value-item on cards) */
.value-item {
  background: linear-gradient(145deg, #0d2444 0%, var(--navy) 48%, #08182e 100%);
  color: #ebebeb;
  border-radius: var(--radius-panel);
  padding: var(--space-6) var(--space-5);
  height: 100%;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 12px 36px rgba(5, 13, 26, 0.25);
  text-align: center;
}

.value-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin: 0 auto var(--space-3);
  color: var(--gold);
}

/* Same icon row height so headings align; center icons so the tall star isn’t optically “high” vs smaller glyphs */
#values .value-icon {
  width: 5.25rem;
  height: 5.25rem;
  margin: 0 auto var(--space-2);
  align-items: center;
    overflow: visible;

}


#values .value-icon svg {
  width: 2.5rem;
  height: 2.5rem;
}

#values .row > .col:nth-child(4) .value-icon svg {
 width: 4rem;
  height: 4rem;
  overflow: visible;
}

/* Solid gold shapes (SVGs were stroke-only + fill="none") */
#values .value-icon svg path {
  fill: currentColor;
  stroke: none;
}

/* Shield + check: filled shield, stroked check */
#values .row > .col:first-child .value-icon svg path:last-of-type {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.value-item h3 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  margin: 0 0 var(--space-2);
  color: var(--white);
}

.value-item p {
  margin: 0;
  font-size: 0.92rem;
  color: #ebedef;
}

/* About — split layout (CSS grid avoids Bootstrap column gutter offset) */
.about-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(var(--space-5), 3vw, var(--space-8));
  align-items: center;
}

@media (min-width: 992px) {
  .about-layout {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: clamp(var(--space-6), 4vw, var(--space-10));
  }
}

.about-row {
  align-items: center;
}

.about-visual {
  position: relative;
  border-radius: var(--radius-panel);
  overflow: hidden;
  box-shadow: var(--shadow-lift);
  aspect-ratio: 4 / 3;
  background: var(--gray-bg);
}

.about-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-prose {
  max-width: 42rem;
}

.about-prose .section-head {
  margin-left: 0;
  margin-right: 0;
  max-width: none;
  margin-bottom: var(--space-6);
}

.about-prose p {
  margin: 0 0 var(--prose-gap);
}

.about-prose p:last-child {
  margin-bottom: 0;
}

/* About subpage — image floats beside opening paragraphs */
.subpage-about .about-body {
  display: block;
  max-width: none;
}

.subpage-about .about-body::after {
  content: "";
  display: table;
  clear: both;
}

.subpage-about .about-visual--float {
  float: right;
  width: min(44%, 22rem);
  margin: 0 0 var(--space-5) var(--space-6);
}

@media (min-width: 992px) {
  .subpage-about .about-visual--float {
    width: min(40%, 26rem);
  }
}

@media (max-width: 781.98px) {
  .subpage-about .about-visual--float {
    float: none;
    width: 100%;
    margin: 0 0 var(--space-5);
  }
}

.subpage-about .subpage-intro .rebrand-note {
  margin: var(--space-4) 0 var(--space-5);
  width: fit-content;
  max-width: 100%;
}

.rebrand-note {
  margin: var(--space-5) 0 0;
  padding: var(--space-4) var(--space-5) calc(var(--space-4) + var(--space-1));
  font-size: 0.98rem;
  color: #3d3d3d;
  line-height: 1.6;
  background: rgba(200, 162, 74, 0.12);
  border-left: 4px solid var(--gold);
  border-radius: 0 var(--radius-card) var(--radius-card) 0;
}

.site-rebrand-note {
  background: rgba(200, 162, 74, 0.12);
  border-bottom: 1px solid rgba(11, 31, 59, 0.08);
}

.site-rebrand-note .rebrand-note {
  display: block;
  max-width: 100%;
  margin: 0 auto;
  padding: var(--space-3) var(--space-5);
  font-size: 0.94rem;
  line-height: 1.5;
  color: #4a4f58;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.site-rebrand-note .rebrand-note::before {
  content: "Practice update: ";
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-on-light);
  white-space: nowrap;
  vertical-align: 0.08em;
}

.site-rebrand-note .rebrand-note strong {
  color: var(--navy);
  font-weight: 700;
}

@media (max-width: 781.98px) {
  .site-rebrand-note .rebrand-note {
    width: 100%;
    padding-block: var(--space-3);
  }
}

.home-main .about-section .rebrand-note,
.subpage-about .subpage-intro .rebrand-note {
  display: none;
}

/* Stock video showcase */
.media-showcase {
  margin: 0;
  max-width: 52rem;
  margin-inline: auto;
}

.media-showcase-frame {
  position: relative;
  border-radius: var(--radius-panel);
  overflow: hidden;
  border: 1px solid rgba(11, 31, 59, 0.1);
  box-shadow: var(--shadow-lift);
}

.media-showcase .wp-block-image {
  margin-bottom: 0;
}

.media-showcase-video {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-showcase-credit {
  margin: var(--space-3) 0 0;
  font-size: 0.82rem;
  color: #5a6570;
  text-align: center;
  line-height: 1.5;
}

.hero-contact-col {
  display: flex;
  justify-content: center;
  align-items: center;
}

@media (min-width: 992px) {
  .hero-contact-col {
    justify-content: flex-end;
    align-items: center;
  }
}

.contact-card--hero {
  width: 100%;
  max-width: 26rem;
}

@media (min-width: 992px) {
  .hero-contact-col .contact-card--hero {
    max-width: none;
    margin-inline: 0;
  }
}

.contact-card {
  max-width: 26rem;
  margin: 0 auto;
  padding: clamp(var(--space-7), 4vw, var(--space-8)) clamp(var(--space-5), 4vw, var(--space-8));
  text-align: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
}

/* Hero “Visit us” — light panel (readable on dark hero backdrop) */
/* Logo belongs in the heading row, not inside the Visit us card (legacy block markup). */
.hero .contact-card.contact-card--hero > .hero-heading-mark,
.hero .contact-card.contact-card--hero > .wp-block-group.hero-heading-mark {
  display: none !important;
}

.hero .contact-card.contact-card--hero {
  color: rgba(11, 31, 59, 0.92);
  background: linear-gradient(165deg, rgba(255, 253, 248, 0.98) 0%, rgba(248, 246, 240, 0.96) 100%);
  border: 1px solid rgba(11, 31, 59, 0.12);
  box-shadow:
    0 22px 52px rgba(11, 31, 59, 0.14),
    0 1px 0 rgba(255, 255, 255, 0.85) inset;
}

.hero .contact-card.contact-card--hero .contact-card-title {
  color: var(--navy);
}

.hero .contact-card.contact-card--hero .contact-card-address,
.hero .contact-card.contact-card--hero a.contact-card-address {
  color: rgba(11, 31, 59, 0.88);
}

.hero .contact-card.contact-card--hero .contact-card-address:hover {
  color: var(--navy);
}

.hero .contact-card.contact-card--hero .contact-card-lead {
  margin-bottom: var(--space-3);
}

.hero .contact-card.contact-card--hero .contact-card-phone {
  margin: 0 0 var(--space-4);
  text-align: center;
}

.hero .contact-card.contact-card--hero .contact-card-phone a {
  color: var(--navy);
}

.hero .contact-card.contact-card--hero .contact-card-phone a:hover {
  color: var(--blue);
}

.hero .contact-card.contact-card--hero .contact-card-divider {
  background: linear-gradient(90deg, transparent, rgba(200, 162, 74, 0.45), transparent);
}

.hero .contact-card.contact-card--hero .contact-hours-row {
  border-bottom-color: rgba(11, 31, 59, 0.1);
}

.hero .contact-card.contact-card--hero .contact-hours dt {
  color: rgba(11, 31, 59, 0.9);
}

.hero .contact-card.contact-card--hero .contact-hours dd {
  color: rgba(11, 31, 59, 0.72);
}

.hero .contact-card-brand {
  margin: 0 auto var(--space-5);
  padding: var(--space-3) var(--space-4);
  max-width: 100%;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.hero .contact-card-logo {
  display: block;
  width: min(220px, 100%);
  height: auto;
  margin: 0 auto;
}

.contact-card-title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(1.65rem, 3vw, 2rem);
  color: var(--white);
  margin: 0 0 var(--space-3);
  letter-spacing: 0.02em;
}

.contact-card-lead {
  margin: 0 0 var(--space-5);
  font-size: 1.05rem;
  line-height: 1.55;
}

.contact-card-phone {
  margin: 0 0 var(--space-4);
  font-size: 1.12rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

.contact-card-phone a {
  text-decoration: none;
  color: inherit;
}

.contact-card-phone a:hover {
  text-decoration: underline;
}

.contact-card-address {
  color: rgba(255, 255, 255, 0.94);
  font-weight: 500;
}

.contact-card-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-3);
}

.contact-card-divider {
  height: 1px;
  margin: var(--space-6) 0 var(--space-5);
  background: linear-gradient(90deg, transparent, rgba(200, 162, 74, 0.5), transparent);
}

.contact-hours-title {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 var(--space-3);
}

.contact-hours {
  margin: 0 auto;
  padding: 0;
  max-width: 19.5rem;
  text-align: left;
}

.contact-hours-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: var(--space-2) var(--space-4);
  padding: var(--space-2) 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-family: var(--font-sans);
  font-size: 0.94rem;
}

.contact-hours-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.contact-hours dt {
  margin: 0;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
}

.contact-hours dd {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.team-row {
  max-width: 52rem;
  margin-inline: auto;
}

.team-card {
  margin: 0;
}

.team-figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.team-photo-link {
  display: block;
  max-width: 13.5rem;
  margin-inline: auto;
  text-decoration: none;
}

.team-photo-frame {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(11, 31, 59, 0.1);
  box-shadow: 0 8px 32px rgba(11, 31, 59, 0.08);
  background: var(--gray-bg);
  line-height: 0;
}

.team-photo {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: bottom;
}

.team-caption {
  text-align: center;
  padding: 0 var(--space-1);
}

.team-name {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--navy);
  margin: 0 0 var(--space-2);
}

.team-name abbr {
  text-decoration: none;
  font-variant: normal;
  cursor: help;
}

.team-bio {
  margin: 0;
  font-size: 0.98rem;
  color: #3d3d3d;
  line-height: 1.6;
  max-width: 36rem;
  margin-inline: auto;
}

/* Footer — wide panel, logo rail, contact + hours grid */
.site-footer {
  background: linear-gradient(180deg, #ebe6de 0%, var(--gray-bg) 45%, var(--gray-bg) 100%);
  color: var(--charcoal);
  padding: var(--section-y) 0 var(--space-10);
  border-top: 1px solid rgba(11, 31, 59, 0.07);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: var(--space-8);
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--container-inset));
  margin-inline: auto;
  padding-inline: var(--container-inset);
}

.footer-panel {
  display: grid;
  gap: var(--space-6) var(--space-8);
  align-items: start;
  width: 100%;
  padding: var(--space-7) var(--space-6);
  text-align: left;
  background: var(--white);
  border-radius: var(--radius-panel);
  border: 1px solid rgba(11, 31, 59, 0.08);
  box-shadow: 0 14px 44px rgba(11, 31, 59, 0.08);
}

@media (min-width: 640px) {
  .footer-panel {
    grid-template-columns: minmax(0, 10.5rem) 1fr;
    gap: var(--space-7) var(--space-10);
    padding: var(--space-8) var(--space-8);
  }
}

@media (min-width: 900px) {
  .footer-panel {
    grid-template-columns: minmax(0, 12rem) 1fr;
    gap: var(--space-8) var(--space-12);
    padding: var(--space-10) var(--space-10);
  }
}

.footer-panel-brand {
  padding-bottom: var(--space-5);
  border-bottom: 1px solid rgba(11, 31, 59, 0.1);
}

@media (max-width: 639.98px) {
  .footer-panel-brand {
    display: flex;
    justify-content: center;
    text-align: center;
  }

  .footer-panel-brand .footer-logo {
    margin-inline: auto;
  }
}

@media (min-width: 640px) {
  .footer-panel-brand {
    padding-bottom: 0;
    border-bottom: 0;
    border-right: 1px solid rgba(11, 31, 59, 0.1);
    padding-right: var(--space-8);
    margin-right: 0;
    align-self: stretch;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
  }
}

.footer-panel-brand .footer-logo {
  width: 100%;
  max-width: 11.5rem;
  height: auto;
  display: block;
}

@media (min-width: 640px) {
  .footer-panel-brand .footer-logo {
    max-width: 100%;
  }
}

.footer-panel-main {
  min-width: 0;
}

.footer-office-heading {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(1.2rem, 2.1vw, 1.45rem);
  color: var(--navy);
  margin: 0 0 var(--space-6);
  letter-spacing: 0.02em;
  padding-bottom: var(--space-4);
  border-bottom: 1px solid rgba(11, 31, 59, 0.1);
  position: relative;
}

.footer-office-heading::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 2.75rem;
  height: 3px;
  background: var(--gold);
  border-radius: 2px;
}

.footer-panel-grid {
  display: grid;
  gap: var(--space-7) var(--space-8);
  grid-template-columns: 1fr;
}

@media (min-width: 700px) {
  .footer-panel-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-7) var(--space-10);
    align-items: start;
  }
}

.footer-panel-contact {
  min-width: 0;
}

.footer-panel-hours {
  padding: var(--space-5) var(--space-6);
  background: var(--cream);
  border-radius: var(--radius-card);
  border: 1px solid rgba(11, 31, 59, 0.07);
}

.footer-address {
  margin: 0 0 var(--space-4);
  font-size: 1rem;
  line-height: 1.55;
  font-style: normal;
}

.footer-address a {
  color: var(--navy);
  font-weight: 500;
  text-decoration: none;
}

.footer-address a:hover {
  color: var(--blue);
  text-decoration: underline;
}

.footer-phone {
  margin: 0 0 var(--space-5);
  font-size: 1.05rem;
}

.footer-phone a {
  color: var(--navy);
  font-weight: 600;
  text-decoration: none;
}

.footer-phone a:hover {
  color: var(--blue);
  text-decoration: underline;
}

.footer-maps-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-5);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  border: 1px solid rgba(11, 31, 59, 0.22);
  border-radius: var(--bs-border-radius);
  background: var(--white);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.footer-maps-btn:hover {
  color: var(--blue);
  border-color: rgba(58, 104, 133, 0.45);
  background: rgba(58, 104, 133, 0.06);
}

.footer-maps-btn:focus-visible {
  outline: var(--focus-ring);
  outline-offset: var(--focus-offset);
}

.footer-hours-title {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-on-light);
  margin: 0 0 var(--space-3);
}

.footer-hours {
  margin: 0;
  padding: 0;
  text-align: left;
}

.footer-hours-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: var(--space-2) var(--space-4);
  padding: var(--space-2) 0;
  border-bottom: 1px solid rgba(11, 31, 59, 0.1);
  font-family: var(--font-sans);
  font-size: 0.94rem;
}

.footer-hours-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.footer-hours dt {
  margin: 0;
  font-weight: 600;
  color: var(--charcoal);
}

.footer-hours dd {
  margin: 0;
  color: #444;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.footer-nav,
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: var(--space-2) var(--space-5);
  margin: 0;
  padding: var(--space-2) 0 0;
  border-top: 1px solid rgba(11, 31, 59, 0.08);
}

.footer-legal {
  padding-top: var(--space-3);
  gap: var(--space-2) var(--space-4);
}

.footer-nav a,
.footer-legal a {
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--navy);
  text-decoration: none;
  white-space: nowrap;
}

.footer-nav a:hover,
.footer-legal a:hover {
  color: var(--blue);
  text-decoration: underline;
}

.footer-nav a:focus-visible,
.footer-legal a:focus-visible {
  outline: var(--focus-ring);
  outline-offset: var(--focus-offset);
  border-radius: 2px;
}

.footer-copy {
  margin: 0;
  padding-top: var(--space-2);
  font-size: 0.8rem;
  color: #4a4a4a;
  text-align: center;
}

/* Services — image tiles + Bootstrap cards */
.service-tile.card.uh-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.service-tile.card.uh-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(11, 31, 59, 0.1);
}

@media (prefers-reduced-motion: reduce) {
  .service-tile.card.uh-card:hover {
    transform: none;
  }
}

.service-tile-media {
  position: relative;
  width: 100%;
  flex-shrink: 0;
  overflow: hidden;
  /* Same strip height on every tile (not tied to column width like aspect-ratio alone). */
  height: clamp(8.75rem, 22vw, 12.5rem);
  background: #e8ecf1;
}

.service-tile-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Services — Bootstrap cards */
.service-tile .card-body {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 auto !important;
}

.service-tile .card-body h3 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--navy);
  margin: 0 0 var(--space-2);
}

.service-tile .card-body p {
  margin: 0 0 1rem 0;
  font-size: 0.9rem;
  color: #444;
  line-height: 1.55;
}

.service-tile .card-body a {
  font-weight: 600;
}

.service-tile .card-body .wp-block-buttons {
  margin-top: auto;
  display: flex;
  justify-content: center;
}

.service-learn-more {
  width: 100%;
  margin-top: auto;
}

/* Doctor bio cards (providers page) */
.bio-card .card-body {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: clamp(var(--space-5), 4vw, var(--space-8));
}

.bio-card-media {
  flex: 0 0 clamp(12rem, 22vw, 17.5rem);
  width: clamp(12rem, 22vw, 17.5rem);
  display: flex;
  flex-direction: column;
  align-self: stretch;
  text-align: center;
}

.bio-card h3 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--navy);
  margin: var(--space-3) 0 0;
  text-align: center;
  line-height: 1.3;
  flex-shrink: 0;
}

.bio-card-photo-frame {
  flex: 1 1 auto;
  min-height: 14rem;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(11, 31, 59, 0.1);
  box-shadow: 0 8px 28px rgba(11, 31, 59, 0.07);
  background: var(--gray-bg);
  margin: 0;
  line-height: 0;
}

.bio-card-photo-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center center;
}

.bio-card-content {
  flex: 1 1 auto;
  min-width: 0;
}

@media (max-width: 575.98px) {
  .bio-card .card-body {
    flex-direction: column;
    align-items: stretch;
  }

  .bio-card-media {
    flex: none;
    width: 100%;
    max-width: 16rem;
    margin-inline: auto;
  }

  .bio-card-photo-frame {
    flex: none;
    min-height: 0;
    max-width: 16rem;
    margin-inline: auto;
  }

  .bio-card-photo-img {
    height: auto;
    object-fit: initial;
    object-position: center top;
  }
}

.bio-prose p {
  margin: 0 0 var(--space-3);
  font-size: 0.98rem;
  color: #3d3d3d;
  line-height: 1.65;
}

.bio-prose p:last-child {
  margin-bottom: 0;
}

.text-link {
  font-weight: 600;
}

/* Invisalign band */
.invisalign-band {
  background: linear-gradient(135deg, #0a1a33 0%, var(--navy) 50%, #132a4d 100%);
  color: rgba(255, 255, 255, 0.94);
}

.invisalign-row {
  max-width: 56rem;
  margin-inline: auto;
}

@media (max-width: 991.98px) {
  .invisalign-row > [class*="col-"]:has(.invisalign-copy) {
    order: 2;
  }

  .invisalign-row > [class*="col-"]:has(.invisalign-badge-card) {
    order: 1;
  }
}

.invisalign-copy p {
  margin: 0 0 var(--prose-gap);
  line-height: 1.65;
}

.invisalign-copy p:last-of-type {
  margin-bottom: 0;
}

.invisalign-badge-card {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-inline: auto;
  max-width: 14rem;
  padding: var(--space-5) var(--space-6);
  background: rgba(255, 255, 255, 0.97);
  border-radius: var(--radius-card);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
}

@media (min-width: 992px) {
  .invisalign-badge-card {
    margin-inline: 0;
    margin-left: auto;
  }
}

.invisalign-provider-logo {
  display: block;
  width: 100%;
  max-width: 11rem;
  height: auto;
  margin-inline: auto;
}

.invisalign-eyebrow {
  color: var(--gold) !important;
  margin-bottom: var(--space-2) !important;
}

.invisalign-copy h2 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(1.6rem, 3.5vw, 2.1rem);
  color: var(--white);
  margin: 0 0 var(--space-4);
  line-height: 1.2;
}

/* Insurance (home) */
.section-head--insurance .insurance-intro {
  margin-top: 0;
}

.insurance-rule {
  width: 3rem;
  height: 3px;
  margin: 0 auto var(--space-5);
  border: 0;
  background: var(--gold);
  border-radius: 2px;
}

.insurance-logos {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: var(--space-4) var(--space-5);
  max-width: 68rem;
  margin-inline: auto;
}

.insurance-logos__item {
  flex: 0 1 10.25rem;
}

.insurance-logo-card {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 5.75rem;
  height: 100%;
  padding: var(--space-4) var(--space-5);
  background: var(--white);
  border-radius: var(--radius-card);
  border: 1px solid rgba(11, 31, 59, 0.08);
  box-shadow: var(--shadow-soft);
}

.insurance-logo-img {
  width: 100%;
  max-height: 3.85rem;
  object-fit: contain;
  object-position: center;
  display: block;
}

.insurance-footnote {
  text-align: center;
  font-size: 0.88rem;
  color: #555;
  margin: var(--space-6) 0 0;
  max-width: 40rem;
  margin-inline: auto;
}

/* Testimonial carousel (home) */
.testimonial-carousel {
  max-width: 40rem;
  margin-inline: auto;
}

.testimonial-carousel-shell {
  outline: none;
}

.testimonial-carousel-shell:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 4px;
  border-radius: 12px;
}

.testimonial-carousel-viewport {
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(11, 31, 59, 0.1);
  background: var(--white);
  box-shadow: 0 4px 24px rgba(11, 31, 59, 0.06);
}

.testimonial-carousel-track {
  display: flex;
  margin: 0;
  padding: 0;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
  .testimonial-carousel-track {
    transition: none;
  }
}

.testimonial-carousel-slide {
  flex: 0 0 100%;
  min-width: 0;
  box-sizing: border-box;
  padding: var(--space-1);
}

.testimonial-slide-card {
  margin: 0;
  padding: var(--space-6) var(--space-5) var(--space-5);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.testimonial-slide-card blockquote {
  margin: 0;
}

.testimonial-slide-card blockquote p {
  margin: 0;
  font-size: 1.02rem;
  color: #2a2a2a;
  line-height: 1.6;
  font-style: italic;
}

.testimonial-slide-card figcaption {
  margin-top: var(--space-4);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
}

.testimonial-carousel-toolbar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  margin-top: var(--space-5);
  flex-wrap: wrap;
}

.testimonial-carousel-status {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy);
  min-width: 4.5rem;
  text-align: center;
}

.testimonial-carousel-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border-radius: 50%;
  border: 2px solid rgba(11, 31, 59, 0.2);
  background: var(--white);
  color: var(--navy);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.testimonial-carousel-btn:hover {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.testimonial-carousel-btn:focus {
  outline: none;
}

.testimonial-carousel-btn:focus-visible {
  outline: var(--focus-ring);
  outline-offset: 2px;
}

.testimonial-carousel-autoplay-wrap {
  text-align: center;
  margin-top: var(--space-3);
}

.testimonial-carousel-btn.testimonial-carousel-pause {
  position: relative;
}

.testimonial-carousel-btn.testimonial-carousel-pause svg {
  width: 1.15rem;
  height: 1.15rem;
  flex-shrink: 0;
}

/* Must beat the rule above (svg display); otherwise both icons show */
.testimonial-carousel-btn.testimonial-carousel-pause .testimonial-carousel-pause-icon-play {
  display: none;
}

.testimonial-carousel-btn.testimonial-carousel-pause.is-paused .testimonial-carousel-pause-icon-bars {
  display: none;
}

.testimonial-carousel-btn.testimonial-carousel-pause.is-paused .testimonial-carousel-pause-icon-play {
  display: block;
}

.testimonial-carousel .testimonials-all-wrap {
  margin-top: var(--space-7);
}

.testimonials-all-wrap {
  text-align: center;
  margin: 0;
}

.testimonial-card.card {
  margin: 0;
}

.testimonial-card figure {
  margin: 0;
}

.testimonial-card blockquote {
  margin: 0;
}

.testimonial-card blockquote p {
  margin: 0;
  font-size: 0.92rem;
  color: #333;
  line-height: 1.55;
  font-style: italic;
}

.testimonial-card figcaption {
  margin-top: var(--space-3);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--navy);
}

.testimonials-archive {
  text-align: center;
  font-size: 0.9rem;
  color: #444;
  margin: var(--space-6) 0 0;
  max-width: 40rem;
  margin-inline: auto;
}

/* Subpages — shared title + body column */
.subpage-intro {
  padding: clamp(var(--space-5), 3vw, var(--space-8)) 0 var(--space-5);
  width: 100%;
  text-align: left;
}

.subpage-title,
.subpage-lead {
  text-align: left;
}

.subpage-lead {
  margin-bottom: var(--space-6);
}

/* Narrow prose layout (legacy — prefer subpage-main--wide) */
.subpage-main--prose .subpage-intro,
.subpage-main--prose .legal-prose,
.subpage-main--prose .entry-content,
.subpage-main--prose .blog-list,
.subpage-main--prose .blog-empty,
.subpage-main--prose .blog-pagination,
.subpage-main--prose .subpage-back {
  width: 100%;
  max-width: var(--subpage-content-max);
  margin-inline: 0;
}

/* Wide layout: title + body use full .container width (services, legal, blog, etc.) */
.subpage-main--wide .subpage-intro,
.subpage-main--wide .legal-prose,
.subpage-main--wide .entry-content,
.subpage-main--wide .blog-list,
.subpage-main--wide .blog-empty,
.subpage-main--wide .blog-pagination,
.subpage-main--wide .subpage-back,
.subpage-main--wide .service-detail-content .service-page,
.service-detail-page .subpage-intro,
.service-detail-page .entry-content,
.service-detail-page .service-detail-content .service-page,
.service-detail-page .subpage-back {
  width: 100%;
  max-width: none;
  margin-inline: 0;
}

/*
 * Bootstrap .row uses negative margins + column padding, which indents .col
 * content relative to siblings placed directly in .container (e.g. .subpage-intro).
 * Use gap between columns instead so titles and body share the same left edge.
 */
.subpage-main .container > .row,
.subpage-main > .section .container > .row {
  margin-inline: 0 !important;
  --bs-gutter-x: 0 !important;
}

.subpage-main .container > .row > *,
.subpage-main > .section .container > .row > * {
  padding-inline: 0 !important;
}

.subpage-main .container > .row.g-4,
.subpage-main > .section .container > .row.g-4 {
  column-gap: 1.5rem;
  row-gap: 1.5rem;
}

@media (min-width: 992px) {
  .subpage-main .container > .row.g-lg-5,
  .subpage-main > .section .container > .row.g-lg-5 {
    column-gap: 3rem;
    row-gap: 3rem;
  }
}

/* Services / testimonials card grids — row-cols flex + column-gap wraps to 2 cols */
.subpage-main .container > .row[class*="row-cols"] {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-4);
}

.subpage-main .container > .row[class*="row-cols"] > * {
  width: auto !important;
  max-width: none !important;
  flex: none !important;
}

@media (max-width: 991.98px) {
  .subpage-main .container > .row[class*="row-cols"] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575.98px) {
  .subpage-main .container > .row[class*="row-cols"] {
    grid-template-columns: 1fr;
  }
}

/* Legacy markup: title in .container.subpage-intro, body in a later .section .container */
.subpage-main > .container.subpage-intro {
  width: 100%;
  max-width: min(100% - 2 * var(--container-inset), var(--max));
  margin-inline: auto;
  padding-inline: var(--container-inset);
  padding-bottom: 0;
}

.subpage-main > .container.subpage-intro .subpage-title,
.subpage-main > .container.subpage-intro .subpage-lead {
  max-width: none;
  margin-inline: 0;
}

.service-detail-content {
  padding-bottom: clamp(var(--space-8), 5vw, var(--space-10));
}

.service-detail-content::after {
  content: "";
  display: table;
  clear: both;
}

.service-detail-content > .wp-block-columns:first-child,
.service-detail-content .wp-block-columns.uhs-service-media-right {
  align-items: center;
  gap: clamp(var(--space-6), 5vw, var(--space-10));
}

@media (min-width: 782px) {
  .service-detail-content > .wp-block-columns:first-child:has(.wp-block-image) {
    flex-direction: row;
  }

  .service-detail-content > .wp-block-columns:first-child:has(.wp-block-image) > .wp-block-column:has(.wp-block-image),
  .service-detail-content .wp-block-columns.uhs-service-media-right > .wp-block-column:has(.wp-block-image) {
    order: 2;
  }

  .service-detail-content > .wp-block-columns:first-child:has(.wp-block-image) > .wp-block-column:not(:has(.wp-block-image)),
  .service-detail-content .wp-block-columns.uhs-service-media-right > .wp-block-column:not(:has(.wp-block-image)) {
    order: 1;
  }
}

.wp-block-image {
  margin: 0;
}

.service-detail-content .wp-block-image img {
  width: 100%;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
}

/* Smile gallery */
.smile-gallery-page .subpage-intro {
  margin-bottom: clamp(var(--space-6), 5vw, var(--space-8));
}

.subpage-kicker {
  margin: 0 0 var(--space-2);
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.smile-gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
}

.smile-case.card.uh-card,
.smile-gallery-empty.card.uh-card {
  overflow: hidden;
}

.smile-case-header {
  padding: var(--space-4) var(--space-4) var(--space-3);
}

.smile-case-header h2,
.smile-gallery-empty h2 {
  margin: 0;
  color: var(--navy);
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  line-height: 1.2;
}

.smile-case-header p {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.smile-before-after {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: rgba(17, 44, 61, 0.12);
}

.smile-before-after figure {
  position: relative;
  margin: 0;
  background: #f6f3ed;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.smile-before-after img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.smile-before-after figcaption {
  position: absolute;
  left: var(--space-2);
  bottom: var(--space-2);
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--navy);
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1;
}

.smile-gallery-empty {
  max-width: 760px;
  padding: clamp(var(--space-5), 4vw, var(--space-7));
  margin-right: auto !important;
    margin-left: auto !important;
}

.smile-gallery-empty p {
  max-width: 58ch;
  margin: var(--space-3) 0 var(--space-4);
  color: #2a2a2a;
  line-height: 1.7;
}

@media (max-width: 991.98px) {
  .smile-gallery-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 575.98px) {
  .smile-before-after {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 781.98px) {
  .service-detail-content > .wp-block-columns:first-child,
  .service-detail-content .wp-block-columns.uhs-service-media-right {
    gap: var(--space-5);
  }
}



.subpage-title {
  font-family: var(--font-serif);
  font-size: clamp(1.85rem, 4vw, 2.35rem);
  font-weight: 600;
  color: var(--navy);
  margin: 0 0 var(--space-3);
  line-height: 1.2;
}

.subpage-lead {
  margin: 0;
  font-size: 1.05rem;
  color: #2a2a2a;
  line-height: 1.65;
}

.subpage-back {
  margin: var(--space-10) 0 0;
  font-size: 0.98rem;
}

/* Service detail pages (imported .service-page HTML) */

.subpage-main:has(.subpage-title) .service-page .service-page-title {
  display: none;
}

/* Hero image floats beside lead paragraph */
.service-page-header {
  display: block;
  margin-bottom: var(--space-6);
}

.service-hero-media {
  float: right;
  width: min(44%, 22rem);
  margin: 0 0 var(--space-5) var(--space-6);
  line-height: 0;
}

@media (min-width: 992px) {
  .service-hero-media {
    width: min(40%, 26rem);
  }
}

.service-page::after {
  content: "";
  display: table;
  clear: both;
}

@media (max-width: 781.98px) {
  .service-hero-media {
    float: none;
    width: 100%;
    margin: 0 0 var(--space-5);
  }
}

.service-page-title,
.service-page h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.85rem, 4vw, 2.35rem);
  font-weight: 600;
  color: var(--navy);
  margin: 0 0 var(--space-3);
  line-height: 1.2;
}

.service-lead {
  margin: 0 0 var(--space-6);
  font-size: 1.05rem;
  color: #2a2a2a;
  line-height: 1.65;
}

.service-kicker {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #5c5c5c;
  margin: 0 0 var(--space-3);
}

.service-page h2 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--navy);
  margin: var(--space-8) 0 var(--space-3);
  line-height: 1.25;
}

.service-page h2:first-child {
  margin-top: 0;
}

.service-page h3 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--navy);
  margin: var(--space-5) 0 var(--space-2);
  line-height: 1.3;
}

.service-page p,
.service-page li {
  line-height: 1.65;
  color: #2a2a2a;
}

.service-page p {
  margin: 0 0 var(--prose-gap);
}

.service-page p:last-child {
  margin-bottom: 0;
}

.service-hero-media,
.service-page .wp-block-image {
  margin: 0 0 var(--space-5);
}

.service-hero-img,
.service-page .wp-block-image img {
  width: 100%;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
}

.service-cta {
  margin-top: var(--space-8);
  padding-top: var(--space-6);
  border-top: 1px solid rgba(11, 31, 59, 0.1);
  text-align: center;
}

.service-cta .btn + .btn {
  margin-left: var(--space-3);
}

@media (max-width: 575.98px) {
  .service-cta .btn {
    display: block;
    width: 100%;
    margin: 0 0 var(--space-3);
  }

  .service-cta .btn + .btn {
    margin-left: 0;
  }
}

.team-more {
  display: flex;
  justify-content: center;
  margin: var(--space-6) 0 0;
}

.team-more-cta {
  margin: 0;
}

.section-compact {
  padding: var(--section-y-compact) 0;
}

/* Legal / long-form prose (privacy, terms, blog posts) */
.legal-prose {
  max-width: none;
}

.legal-prose > * + * {
  margin-top: var(--prose-gap);
}

.legal-prose h2,
.service-detail-content h2 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--navy);
  margin: var(--space-8) 0 var(--space-3);
  line-height: 1.25;
}

.legal-prose h2:first-child,
.service-detail-content h2:first-child {
  margin-top: 0;
}

.service-detail-content h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.85rem, 4vw, 2.35rem);
  font-weight: 600;
  color: var(--navy);
  margin: 0 0 var(--space-3);
  line-height: 1.2;
}

.service-detail-content h3 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--navy);
  margin: var(--space-5) 0 var(--space-2);
  line-height: 1.3;
}

.legal-prose p {
  margin: 0 0 var(--prose-gap);
  line-height: 1.65;
  color: #2a2a2a;
}

.legal-prose p:last-child {
  margin-bottom: 0;
}

.legal-prose ul,
.legal-prose ol {
  margin: 0 0 var(--prose-gap);
  padding-left: 1.35rem;
}

.legal-prose li {
  margin-bottom: var(--space-2);
  line-height: 1.6;
}

.legal-prose li:last-child {
  margin-bottom: 0;
}

.legal-prose a {
  font-weight: 600;
}

/* FAQ page — native accordion (<details>, no Bootstrap required) */
.faq-page {
  display: grid;
  gap: var(--space-8);
}

.faq-section-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--navy);
  margin: 0 0 var(--space-4);
  line-height: 1.25;
}

.faq-accordion {
  display: grid;
  gap: var(--space-3);
}

.faq-accordion-item {
  border: 1px solid rgba(11, 31, 59, 0.12);
  border-radius: var(--bs-border-radius);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.faq-accordion-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.4;
  cursor: pointer;
  list-style: none;
  user-select: none;
  background: var(--white);
}

.faq-accordion-item[open] .faq-accordion-button {
  background: rgba(58, 104, 133, 0.06);
}

.faq-accordion-button::-webkit-details-marker {
  display: none;
}

.faq-accordion-question {
  flex: 1;
  min-width: 0;
}

.faq-accordion-button::after {
  content: "";
  flex-shrink: 0;
  width: 0.45em;
  height: 0.45em;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
  margin-top: -0.15em;
}

.faq-accordion-item[open] .faq-accordion-button::after {
  transform: rotate(-135deg);
  margin-top: 0.1em;
}

.faq-accordion-button:focus-visible {
  outline: var(--focus-ring);
  outline-offset: -2px;
}

.faq-accordion-body {
  padding: 0 var(--space-5) var(--space-5);
  line-height: 1.65;
  color: #2a2a2a;
}

.faq-accordion-body p {
  margin: var(--space-2) 0 0;
}

.faq-accordion-body p + p {
  margin-top: var(--space-3);
}

.faq-accordion-body a {
  font-weight: 600;
}

/* Blog index */
.blog-list {
  display: grid;
  gap: var(--space-5);
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 768px) {
  .blog-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-6);
  }
}

@media (min-width: 992px) {
  .blog-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.blog-card.uh-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: var(--space-6) var(--space-5);
  background: var(--white);
  border: 1px solid rgba(11, 31, 59, 0.08);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.blog-card.uh-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(11, 31, 59, 0.09);
}

@media (prefers-reduced-motion: reduce) {
  .blog-card.uh-card:hover {
    transform: none;
  }
}

.blog-card-header {
  margin-bottom: var(--space-3);
}

.blog-card-date {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-on-light);
  margin-bottom: var(--space-2);
}

.blog-card-title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.3;
  margin: 0;
}

.blog-card-title a {
  color: var(--navy);
  text-decoration: none;
}

.blog-card-title a:hover {
  color: var(--blue);
  text-decoration: underline;
}

.blog-card-excerpt {
  flex: 1 1 auto;
  font-size: 0.95rem;
  color: #444;
  line-height: 1.6;
}

.blog-card-excerpt p {
  margin: 0;
}

.blog-card-more {
  margin: var(--space-4) 0 0;
}

.blog-empty {
  font-size: 1rem;
  color: #444;
  line-height: 1.6;
  max-width: 36rem;
}

.blog-pagination {
  margin-top: var(--space-8);
  display: flex;
  justify-content: center;
}

.blog-pagination ul.page-numbers {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  list-style: none;
  margin: 0;
  padding: 0;
}

.blog-pagination .page-numbers li {
  margin: 0;
}

.blog-pagination .page-numbers a,
.blog-pagination .page-numbers span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 2.5rem;
  padding: 0 var(--space-3);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--navy);
  text-decoration: none;
  border: 1px solid rgba(11, 31, 59, 0.15);
  border-radius: var(--bs-border-radius);
  background: var(--white);
}

.blog-pagination .page-numbers span.current {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.blog-pagination .page-numbers a:hover {
  background: rgba(58, 104, 133, 0.08);
  border-color: var(--blue);
  color: var(--blue);
}

/* Single blog post */
.blog-single .subpage-intro,
.blog-single .blog-single-content,
.blog-single .subpage-back {
  width: 100%;
  max-width: none;
  margin-inline: 0;
}

.blog-single-header,
.service-detail-page .subpage-intro {
  padding: clamp(var(--space-5), 3vw, var(--space-8)) 0 var(--space-4);
  text-align: left;
}

.blog-single-kicker {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin: 0 0 var(--space-3);
}

.blog-single-kicker a {
  color: #5c5c5c;
  text-decoration: none;
  font-weight: 700;
}

.blog-single-kicker a:hover {
  color: var(--blue);
  text-decoration: underline;
}

.blog-single-meta {
  margin: 0 0 0;
  font-size: 0.95rem;
  color: #555;
}

.blog-single .subpage-back {
  margin-top: var(--space-8);
}

.blog-single-content.legal-prose {
  max-width: none;
}

/* Hero image floats right; excerpt + article wrap beside it until clear at end */
.blog-single-body {
  display: block;
  margin-bottom: var(--space-6);
}

.blog-single-body::after {
  content: "";
  display: table;
  clear: both;
}

.blog-single-body .blog-single-content > *:first-child {
  margin-top: 0;
}

.blog-single-hero-media {
  float: right;
  width: min(44%, 22rem);
  margin: 0 0 var(--space-5) var(--space-6);
  line-height: 0;
}

.blog-single-hero-media .blog-single-img,
.blog-single-hero-media img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(11, 31, 59, 0.08);
}

@media (min-width: 992px) {
  .blog-single-hero-media {
    width: min(40%, 26rem);
  }
}

@media (max-width: 781.98px) {
  .blog-single-hero-media {
    float: none;
    width: 100%;
    margin: 0 0 var(--space-5);
  }
}

.blog-single-lead {
  margin: 0;
  font-size: 1.05rem;
  color: #2a2a2a;
  line-height: 1.65;
}

.blog-single-img {
  width: 100%;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(11, 31, 59, 0.08);
}

/* Contact form page */
.contact-form-page {
  padding-bottom: clamp(var(--space-8), 5vw, var(--space-10));
}

.contact-form-page .contact-form-intro,
.contact-form-page .contact-form-wrap {
  width: 100%;
  max-width: none;
  margin-inline: 0;
}

.contact-form-intro {
  padding-bottom: var(--space-6);
}

.contact-form-kicker {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #5c5c5c;
  margin: 0 0 var(--space-3);
}

.contact-form-title {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 400;
  color: var(--navy);
  line-height: 1.2;
  margin: 0 0 var(--space-4);
}

.contact-form-lead {
  font-size: 1.05rem;
  line-height: 1.65;
  margin: 0;
}

.contact-form-wrap {
  padding-bottom: var(--space-6);
}

.contact-form .form-label {
  font-weight: 600;
  color: var(--navy);
}

.contact-form-check {
  display: flex;
  align-items: flex-start;
  gap: 0;
  padding-left: 0;
  margin-bottom: 1.25rem;
}

.contact-form-check .form-check-input {
  float: none;
  margin-left: 0;
  margin-right: var(--space-3);
  margin-top: 0.35rem;
  flex-shrink: 0;
}

.contact-form-check .form-check-label {
  display: block;
  font-size: 0.9rem;
  line-height: 1.55;
  color: #2a2a2a;
}

.contact-form-sms-title {
  font-size: 1rem;
  color: var(--navy);
}

.contact-form-sms-body {
  line-height: 1.55;
}

.contact-recaptcha-slot {
  border: 1px dashed rgba(11, 31, 59, 0.22);
  border-radius: var(--radius-card);
  padding: var(--space-4);
  background: rgba(11, 31, 59, 0.03);
}

.contact-recaptcha-note a {
  font-weight: 600;
}

.contact-form-submit {
  margin-top: var(--space-2);
}
