@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/3846ce68-7440-483b-a4ef-79a1c24c8bae.woff2") format("woff2");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/de6578c0-5b9b-42fe-b621-77f9c9fbb04a.woff2") format("woff2");
}

:root {
  --petrol: #0e4d4a;
  --teal: #1e837a;
  --teal-soft: #2fa399;
  --mint: #cfe7e1;
  --mist: #eaf3f0;
  --canvas: #f3f7f5;
  --white: #ffffff;
  --ink: #15302e;
  --text-body: #2a4543;
  --muted: #5c726e;
  --gold: #c99a4b;
  --gold-soft: #e3c98e;
  --teal-08: rgba(30, 131, 122, 0.08);
  --teal-12: rgba(30, 131, 122, 0.12);
  --gold-12: rgba(201, 154, 75, 0.12);
  --border-subtle: #dceae5;
  --border-default: #c9ded8;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 999px;
  --shadow-sm: 0 2px 8px rgba(14, 77, 74, 0.07);
  --shadow-lg: 0 22px 48px -20px rgba(14, 77, 74, 0.28);
  --space-block: 88px;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text-body);
  background: var(--canvas);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  height: auto;
}

.tmj-page[hidden] {
  display: none !important;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 500;
  line-height: 1.08;
  margin-bottom: 0.5em;
}

h2 {
  font-size: clamp(1.75rem, 1.3rem + 1.7vw, 2.5rem);
}

h3 {
  font-size: clamp(1.375rem, 1.15rem + 0.9vw, 1.75rem);
}

h4 {
  font-size: 1.25rem;
}

a {
  color: var(--teal);
  text-decoration: none;
}

a:hover {
  color: var(--petrol);
}

.container {
  max-width: 1180px;
}

.section-anchor {
  scroll-margin-top: 112px;
}

.lead {
  color: var(--text-body);
  font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.25rem);
}

.prose {
  max-width: 760px;
}

.display {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.75rem, 1.6rem + 4.6vw, 4.5rem);
  line-height: 1.08;
  color: var(--ink);
  margin: 0;
}

.display em {
  color: var(--teal);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--gold);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
  opacity: 0.75;
}

.tmj-topbar {
  background: var(--petrol);
  color: #dceae6;
  font-size: 0.8125rem;
  font-weight: 600;
}

.tmj-topbar .container {
  min-height: 38px;
}

.tmj-topbar i,
.tmj-topbar-hours {
  color: var(--gold-soft);
}

.tmj-navbar {
  background: var(--canvas);
  border-bottom: 1px solid transparent;
  backdrop-filter: saturate(1.4) blur(14px);
  transition: box-shadow 180ms ease, border-color 180ms ease;
}

.tmj-navbar .container {
  min-height: 72px;
}

.tmj-navbar.is-scrolled {
  border-bottom-color: var(--border-subtle);
  box-shadow: var(--shadow-sm);
}

.navbar-brand img {
  width: auto;
  /* Height comes from the admin's "Logo height" setting; these only stop
     an oversized value from breaking the layout. */
  max-height: 96px;
}

@media (max-width: 575.98px) {
  .navbar-brand img {
    max-height: 56px;
  }
}

.tmj-brand-name {
  color: var(--text-strong, #0f2e2e);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.tmj-footer-brand-name {
  color: #fff;
  display: inline-block;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

/* Footer logo: compact white circular badge. */
.tmj-footer-logo {
  display: grid;
  width: 104px;
  height: 104px;
  place-items: center;
  padding: 10px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.12);
}

.tmj-footer-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
}

.tmj-navbar .nav-link {
  border-radius: var(--radius-pill);
  color: var(--text-body);
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0.55rem 0.9rem;
}

.tmj-navbar .nav-link:hover,
.tmj-navbar .nav-link.active {
  background: var(--mint);
  color: var(--petrol);
}

.navbar-toggler {
  border: 0;
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.btn {
  border-radius: var(--radius-pill);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.01em;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 15px 30px;
  font-size: 1.0625rem;
}

.btn-tmj {
  --bs-btn-bg: var(--teal);
  --bs-btn-border-color: var(--teal);
  --bs-btn-color: var(--white);
  --bs-btn-hover-bg: var(--petrol);
  --bs-btn-hover-border-color: var(--petrol);
  --bs-btn-hover-color: var(--white);
  box-shadow: var(--shadow-sm);
}

.btn-tmj-secondary {
  --bs-btn-bg: transparent;
  --bs-btn-border-color: var(--border-default);
  --bs-btn-color: var(--petrol);
  --bs-btn-hover-bg: var(--mint);
  --bs-btn-hover-border-color: var(--mint);
  --bs-btn-hover-color: var(--petrol);
}

.btn-tmj-light {
  --bs-btn-bg: var(--white);
  --bs-btn-border-color: var(--white);
  --bs-btn-color: var(--petrol);
  --bs-btn-hover-bg: var(--mint);
  --bs-btn-hover-border-color: var(--mint);
  --bs-btn-hover-color: var(--petrol);
}

.btn-tmj-gold {
  --bs-btn-bg: var(--gold);
  --bs-btn-border-color: var(--gold);
  --bs-btn-color: var(--petrol);
  --bs-btn-hover-bg: var(--gold-soft);
  --bs-btn-hover-border-color: var(--gold-soft);
  --bs-btn-hover-color: var(--petrol);
}

.btn-tmj-ghost {
  --bs-btn-bg: transparent;
  --bs-btn-border-color: transparent;
  --bs-btn-color: var(--teal);
  --bs-btn-hover-bg: var(--teal-08);
  --bs-btn-hover-border-color: transparent;
  --bs-btn-hover-color: var(--petrol);
}

.tmj-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(40px, 6vw, 84px) 0;
  background: linear-gradient(180deg, var(--canvas), var(--mist));
}

.tmj-jaw-signature {
  width: min(100%, 380px);
}

.tmj-about-mark {
  width: min(100%, 320px);
}

.tmj-checkline {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
}

.tmj-checkline i {
  color: var(--teal);
  font-size: 1.05rem;
}

.tmj-stat-strip {
  background: var(--petrol);
  padding: 44px 0;
}

.tmj-stat {
  color: var(--white);
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 1.8rem + 2vw, 3.5rem);
  line-height: 1;
}

.tmj-stat small {
  display: block;
  margin-top: 0.7rem;
  color: #dceae6;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
}

.tmj-section {
  padding: var(--space-block) 0;
}

.tmj-section-mist {
  background: var(--mist);
}

.tmj-section-head,
.tmj-page-head {
  max-width: 760px;
  margin-bottom: clamp(32px, 5vw, 52px);
}

.tmj-page-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(48px, 6vw, 88px) 0;
  background: var(--mist);
  color: var(--text-body);
}

.tmj-page-hero::after {
  content: "";
  position: absolute;
  top: -40px;
  right: -30px;
  width: 280px;
  height: 280px;
  border: 2px dashed rgba(207, 231, 225, 0.8);
  border-radius: 50%;
  pointer-events: none;
}

.tmj-page-hero .container {
  position: relative;
  z-index: 1;
}

.tmj-page-hero h1 {
  max-width: 760px;
  margin-top: 14px;
  margin-bottom: 0;
  font-size: clamp(2.25rem, 1.5rem + 2.6vw, 3.25rem);
}

.tmj-page-hero .lead {
  max-width: 680px;
  margin-top: 16px;
  margin-bottom: 0;
}

.tmj-page-hero-petrol {
  background: var(--petrol);
  color: #dceae6;
}

.tmj-page-hero-petrol h1,
.tmj-page-hero-petrol .lead {
  color: var(--white);
}

.tmj-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 600;
}

.tmj-page-hero-petrol .tmj-breadcrumb,
.tmj-page-hero-petrol .tmj-breadcrumb a {
  color: #dceae6;
}

.tmj-section-head.mx-auto {
  max-width: 680px;
}

.tmj-page-head-dark {
  color: var(--white);
}

.tmj-page-head-dark h2,
.tmj-page-head-dark .lead {
  color: var(--white);
}

.tmj-card {
  position: relative;
  display: block;
  height: 100%;
  padding: 28px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  background: var(--white);
  color: inherit;
  box-shadow: var(--shadow-sm);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

a.tmj-card:hover,
article.tmj-card:hover {
  color: inherit;
  border-color: var(--border-default);
  box-shadow: var(--shadow-lg);
  transform: translateY(-6px);
}

.tmj-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.tmj-card-soft {
  background: var(--mist);
  border: 0;
}

.tmj-card-accent::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background: linear-gradient(90deg, var(--teal), var(--gold));
}

.tmj-step {
  display: inline-block;
  margin-bottom: 0.6rem;
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 500;
}

.tmj-service-card {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.tmj-service-card strong {
  margin-top: auto;
  color: var(--teal);
  font-size: 0.95rem;
}

.service-group-heading {
  font-size: clamp(1.375rem, 1.15rem + 0.9vw, 1.75rem);
}

.tmj-icon {
  display: grid;
  width: 68px;
  height: 68px;
  place-items: center;
  border-radius: var(--radius-md);
  background: var(--teal-08);
  color: var(--teal);
  font-size: 2rem;
}

.tmj-service-card-gold .tmj-icon {
  background: var(--gold-12);
  color: var(--gold);
}

/* Card descriptions stay a short teaser — the full story lives on the
   service's detail page. Stops one long text stretching the whole row. */
.tmj-service-card p {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.badge {
  width: fit-content;
  border-radius: var(--radius-pill);
  padding: 0.45rem 0.75rem;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.badge-teal {
  background: var(--teal-12);
  color: var(--petrol);
}

.badge-gold {
  background: var(--gold-12);
  color: #6d4e16;
}

.tmj-check-list {
  display: grid;
  gap: 0.75rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.tmj-check-list li {
  position: relative;
  padding-left: 2.25rem;
}

.tmj-check-list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 0.05rem;
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  background: var(--teal-08);
  color: var(--teal);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 800;
}

.tmj-check-list-gold li::before {
  background: var(--gold-12);
  color: var(--gold);
}

.tmj-process-list {
  display: grid;
  gap: 1rem;
  padding: 0;
  margin: 0;
  list-style: none;
  counter-reset: step;
}

.tmj-process-list li {
  position: relative;
  min-height: 34px;
  padding-left: 3.2rem;
}

.tmj-process-list li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: -0.25rem;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: var(--petrol);
  color: var(--white);
  font-family: var(--font-display);
}

.tmj-sticky {
  position: sticky;
  top: 104px;
}

.tmj-feature {
  display: flex;
  gap: 1rem;
  padding: 24px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  background: var(--white);
}

.tmj-feature > i {
  display: grid;
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: var(--radius-md);
  background: var(--teal-08);
  color: var(--teal);
  font-size: 1.25rem;
}

.tmj-feature h4 {
  margin: 0 0 0.45rem;
  font-size: 1.1rem;
}

.tmj-feature p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.tmj-doctor-card {
  text-align: center;
}

.tmj-doctor-avatar {
  display: grid;
  width: 120px;
  height: 120px;
  margin: 0 auto 1rem;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--mint), var(--mist));
  color: var(--petrol);
  font-family: var(--font-display);
  font-size: 2.3rem;
  overflow: hidden;
}

.tmj-doctor-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

/* Panel headings on the doctors page: centred title between two soft lines. */
.tmj-doctor-group-head {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 28px;
}

.tmj-doctor-group-head::before,
.tmj-doctor-group-head::after {
  content: "";
  flex: 1;
  height: 2px;
  border-radius: 2px;
}

.tmj-doctor-group-head::before {
  background: linear-gradient(to right, transparent, var(--gold-soft));
}

.tmj-doctor-group-head::after {
  background: linear-gradient(to left, transparent, var(--gold-soft));
}

.tmj-doctor-group-head h2 {
  margin: 0;
  font-size: clamp(1.375rem, 1.15rem + 0.9vw, 1.75rem);
  text-align: center;
  color: var(--ink);
}

.tmj-doctor-role {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  margin-bottom: 1rem;
}

/* Degrees & positions: one soft block instead of separate pills. */
.tmj-doctor-quals {
  background: var(--teal-08);
  border: 1px solid var(--teal-12);
  border-radius: var(--radius-md);
  color: var(--petrol);
  padding: 0.85rem 1rem;
  font-size: 0.83rem;
  font-weight: 600;
  line-height: 1.65;
  text-align: left;
}

.tmj-doctor-bio {
  color: var(--text-body);
  font-size: 0.88rem;
  line-height: 1.7;
  text-align: left;
  margin: 1rem 0 0;
}

/* Compact card: qualifications preview is clamped; the full text lives in
   the profile modal. */
.tmj-doctor-card {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.tmj-doctor-card > .tmj-doctor-quals {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  overflow: hidden;
  width: 100%;
  margin-bottom: 1.1rem;
}

.tmj-doctor-more {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border-default);
  background: transparent;
  color: var(--teal);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 8px 20px;
  border-radius: var(--radius-pill);
  transition: background-color 180ms ease, color 180ms ease,
    border-color 180ms ease;
}

.tmj-doctor-more:hover {
  background: var(--teal);
  border-color: var(--teal);
  color: var(--white);
}

/* Full-profile modal */
.tmj-doctor-modal {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(10, 26, 25, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: tmj-lightbox-in 200ms ease;
}

.tmj-doctor-modal[hidden] {
  display: none;
}

.tmj-doctor-modal-card {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 660px;
  max-height: 88vh;
  overflow-y: auto;
  padding: 36px 30px 30px;
}

.tmj-doctor-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: var(--mist);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 180ms ease;
}

.tmj-doctor-modal-close:hover {
  background: var(--mint);
}

.tmj-doctor-modal-head {
  text-align: center;
  margin-bottom: 1.3rem;
}

.tmj-doctor-modal-head h3 {
  margin: 0 0 0.25rem;
}

.tmj-doctor-modal-head .tmj-doctor-role {
  margin-bottom: 0;
}

.tmj-doctor-modal-body .tmj-doctor-quals {
  margin-bottom: 1rem;
}

.tmj-accordion {
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.tmj-accordion .accordion-item {
  border-color: var(--border-subtle);
}

.tmj-accordion .accordion-button {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 500;
}

.tmj-accordion .accordion-button:not(.collapsed) {
  background: var(--mint);
  color: var(--petrol);
  box-shadow: none;
}

#contact {
  background: var(--canvas);
}

.tmj-contact-card {
  padding: clamp(24px, 4vw, 36px);
}

.tmj-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--teal);
  font-weight: 700;
}

.form-label {
  color: var(--ink);
  font-weight: 700;
}

.form-label span {
  color: var(--gold);
}

.form-label small {
  display: block;
  color: var(--muted);
  font-weight: 500;
}

.form-control,
.form-select {
  border-color: var(--border-default);
  border-radius: var(--radius-md);
  padding: 0.78rem 0.9rem;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 0.22rem rgba(30, 131, 122, 0.16);
}

.tmj-info-card {
  display: flex;
  min-height: 168px;
  flex-direction: column;
  gap: 0.35rem;
  padding: 22px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  background: var(--white);
}

.tmj-info-card i {
  display: grid;
  width: 42px;
  height: 42px;
  margin-bottom: 0.5rem;
  place-items: center;
  border-radius: var(--radius-md);
  background: var(--teal-08);
  color: var(--teal);
  font-size: 1.2rem;
}

.tmj-info-card strong {
  color: var(--ink);
}

.tmj-info-card span {
  color: var(--muted);
  font-size: 0.92rem;
}

.tmj-map {
  min-height: 260px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--mint), var(--mist));
}

.tmj-map > div {
  display: grid;
  min-height: 260px;
  place-items: center;
  color: var(--petrol);
  text-align: center;
}

.tmj-map i {
  display: block;
  color: var(--teal);
  font-size: 2.2rem;
}

.tmj-map span {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
}

.tmj-cta {
  position: relative;
  overflow: hidden;
  padding: clamp(64px, 8vw, 96px) 0;
  background: var(--petrol);
  color: #dceae6;
}

.tmj-cta::after {
  content: "";
  position: absolute;
  top: -70px;
  right: -70px;
  width: 280px;
  height: 280px;
  border: 2px dashed rgba(207, 231, 225, 0.35);
  border-radius: 50%;
}

.tmj-cta .container {
  position: relative;
  z-index: 1;
}

.tmj-cta h2 {
  max-width: 520px;
  margin: 1rem auto;
  color: var(--white);
}

.tmj-cta p {
  max-width: 640px;
  margin: 0 auto 1.75rem;
}

.tmj-footer {
  padding: 72px 0 34px;
  background: var(--petrol);
  color: #dceae6;
}

.tmj-footer p,
.tmj-footer li {
  color: #dceae6;
}

.tmj-footer h4 {
  color: var(--white);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 800;
}

.tmj-footer ul {
  display: grid;
  gap: 0.65rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.tmj-footer a {
  color: #dceae6;
}

.tmj-footer a:hover {
  color: var(--gold-soft);
}

.tmj-footer .d-flex a {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}

.tmj-footer-contact li {
  display: flex;
  gap: 0.6rem;
}

.tmj-footer-contact i {
  color: var(--gold-soft);
}

.tmj-footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 44px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: #9fc4bc;
  font-size: 0.85rem;
}

.reveal {
  opacity: 0;
  transform: translateY(26px) scale(0.985);
  transition: opacity 720ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 720ms cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Tablet and below */
@media (max-width: 991.98px) {
  :root {
    --space-block: 64px;
  }

  .tmj-navbar .nav-link {
    border-radius: var(--radius-md);
    padding: 0.8rem 1rem;
  }

  /* Mobile nav: stacked menu with full-width CTA */
  .tmj-navbar .navbar-collapse {
    padding-top: 0.75rem;
  }

  .tmj-navbar .navbar-collapse .btn-tmj {
    width: 100%;
    margin-top: 0.5rem;
  }

  .tmj-sticky {
    position: static;
  }

  .tmj-sticky .mt-4 {
    margin-top: 1rem !important;
  }

  .tmj-feature {
    flex-direction: column;
  }

  .tmj-stat-strip {
    padding: 36px 0;
  }

  /* Keep decorative circles from forcing horizontal scroll */
  .tmj-page-hero::after,
  .tmj-cta::after {
    width: 200px;
    height: 200px;
  }
}

/* Phones (landscape) and below */
@media (max-width: 767.98px) {
  :root {
    --space-block: 56px;
  }

  .tmj-footer {
    padding: 56px 0 28px;
  }

  /* Stack hero / CTA actions full width for easy tapping */
  .tmj-hero .d-flex.flex-wrap > .btn,
  .tmj-cta .d-flex.flex-wrap > .btn {
    flex: 1 1 100%;
  }

  /* Doctors banner card stacks and centers */
  .tmj-doctor-card + .tmj-card.tmj-card-soft,
  .tmj-card.tmj-card-soft.d-flex {
    text-align: center;
    justify-content: center;
  }

  .tmj-card.tmj-card-soft.d-flex .btn {
    width: 100%;
  }
}

/* Small phones */
@media (max-width: 575.98px) {
  .tmj-topbar {
    font-size: 0.75rem;
  }

  .tmj-topbar .container {
    justify-content: center !important;
  }

  .tmj-card,
  .tmj-contact-card {
    padding: 22px;
  }

  .tmj-cta {
    padding: 56px 0;
  }

  .tmj-page-hero::after,
  .tmj-cta::after {
    width: 150px;
    height: 150px;
    top: -30px;
    right: -40px;
  }

  /* Footer link columns full width for breathing room */
  .tmj-footer .col-6 {
    width: 100%;
  }

  .tmj-footer-bottom {
    display: grid;
    text-align: center;
    justify-items: center;
  }

  .tmj-info-card {
    min-height: 0;
  }

  /* Reduce oversized large buttons on tiny screens */
  .btn-lg {
    padding: 13px 24px;
    font-size: 1rem;
  }
}

/* ============================================================
   Site-wide animation layer
   ============================================================ */

@keyframes tmj-page-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes tmj-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-14px);
  }
}

@keyframes tmj-hero-glow {
  0%,
  100% {
    opacity: 0.55;
    transform: translate(0, 0) scale(1);
  }
  50% {
    opacity: 0.9;
    transform: translate(2%, -3%) scale(1.08);
  }
}

@keyframes tmj-spin-slow {
  to {
    transform: rotate(360deg);
  }
}

@keyframes tmj-fade-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes tmj-btn-shine {
  to {
    transform: translateX(220%) skewX(-18deg);
  }
}

/* --- SPA page enter transition --- */
[data-tmj-page]:not([hidden]).tmj-page-enter {
  animation: tmj-page-in 560ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* --- Hero: floating signature + animated glow --- */
.tmj-jaw-signature {
  animation: tmj-float 6s ease-in-out infinite;
}

.tmj-hero {
  position: relative;
  overflow: hidden;
}

.tmj-hero::before {
  content: "";
  position: absolute;
  top: -20%;
  right: -10%;
  width: 60%;
  height: 120%;
  background: radial-gradient(
    circle at center,
    var(--teal-12) 0%,
    rgba(47, 163, 153, 0.05) 45%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 0;
  animation: tmj-hero-glow 9s ease-in-out infinite;
}

.tmj-hero .container {
  position: relative;
  z-index: 1;
}

.tmj-hero .display em {
  position: relative;
  display: inline-block;
  animation: tmj-fade-up 800ms cubic-bezier(0.22, 1, 0.36, 1) 240ms both;
}

/* --- Buttons: lift + sheen --- */
.btn-tmj,
.btn-tmj-secondary,
.btn-tmj-ghost,
.btn-tmj-light,
.btn-tmj-gold {
  position: relative;
  overflow: hidden;
  transition: transform 180ms ease, box-shadow 220ms ease, background-color 180ms ease;
}

.btn-tmj:hover,
.btn-tmj-light:hover,
.btn-tmj-gold:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.btn-tmj-secondary:hover,
.btn-tmj-ghost:hover {
  transform: translateY(-2px);
}

.btn-tmj::after,
.btn-tmj-light::after,
.btn-tmj-gold::after {
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(
    100deg,
    transparent,
    rgba(255, 255, 255, 0.35),
    transparent
  );
  transform: translateX(0) skewX(-18deg);
  pointer-events: none;
}

.btn-tmj:hover::after,
.btn-tmj-light:hover::after,
.btn-tmj-gold:hover::after {
  animation: tmj-btn-shine 750ms ease;
}

.btn-tmj i,
.btn-tmj-secondary i,
.btn-tmj-ghost i {
  transition: transform 220ms ease;
}

.btn-tmj:hover i.bi-arrow-right,
.btn-tmj-secondary:hover i.bi-arrow-right,
.btn-tmj-ghost:hover i.bi-arrow-right {
  transform: translateX(4px);
}

/* --- Nav links: animated underline --- */
.tmj-navbar .nav-link {
  position: relative;
}

.tmj-navbar .nav-link::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 6px;
  height: 2px;
  background: var(--teal);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 260ms cubic-bezier(0.22, 1, 0.36, 1);
}

.tmj-navbar .nav-link:hover::after,
.tmj-navbar .nav-link.active::after {
  transform: scaleX(1);
}

/* --- Service / feature icons: pop on hover --- */
.tmj-icon,
.tmj-feature i,
.tmj-info-card i {
  transition: transform 260ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.tmj-card:hover .tmj-icon,
.tmj-feature:hover i {
  transform: translateY(-3px) scale(1.12) rotate(-3deg);
}

.tmj-info-card:hover i {
  transform: scale(1.15);
}

/* --- Doctor avatar shine --- */
.tmj-doctor-avatar {
  transition: transform 300ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.tmj-doctor-card:hover .tmj-doctor-avatar {
  transform: scale(1.08) rotate(4deg);
}

/* --- Feature / info cards lift --- */
.tmj-feature,
.tmj-info-card {
  transition: transform 200ms ease, box-shadow 220ms ease, border-color 200ms ease;
}

.tmj-feature:hover,
.tmj-info-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

/* --- Stat strip count emphasis --- */
.tmj-stat {
  transition: transform 220ms ease;
}

.tmj-stat:hover {
  transform: translateY(-4px) scale(1.03);
}

/* --- Accordion smoothness --- */
.tmj-accordion .accordion-button,
.tmj-accordion .accordion-button i {
  transition: background-color 200ms ease, color 200ms ease, box-shadow 200ms ease;
}

.tmj-accordion .accordion-item {
  transition: transform 200ms ease, box-shadow 220ms ease;
}

.tmj-accordion .accordion-item:hover {
  transform: translateX(3px);
}

/* --- Checkline ticks --- */
.tmj-checkline span {
  transition: transform 200ms ease, color 200ms ease;
}

.tmj-checkline span:hover {
  transform: translateY(-2px);
  color: var(--teal);
}

/* --- Footer social hover --- */
.tmj-footer a[aria-label] {
  display: inline-flex;
  transition: transform 220ms ease, color 200ms ease;
}

.tmj-footer a[aria-label]:hover {
  transform: translateY(-3px) scale(1.12);
}

/* --- Process list step markers --- */
.tmj-process-list li,
.tmj-check-list li {
  transition: transform 200ms ease;
}

.tmj-process-list li:hover,
.tmj-check-list li:hover {
  transform: translateX(4px);
}

/* --- Hero media slider --- */
.tmj-hero-media {
  position: relative;
  display: block;
  text-align: left;
}

.tmj-hero-media::before {
  content: "";
  position: absolute;
  inset: 22px -16px -16px 22px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--mint) 0%, var(--gold-soft) 100%);
  opacity: 0.55;
  z-index: 0;
}

.tmj-hero-slider {
  position: relative;
  z-index: 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--mist);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 1 / 1;
}

.tmj-hero-slider .carousel-inner,
.tmj-hero-slider .carousel-item {
  height: 100%;
}

.tmj-hero-slider .carousel-item img,
.tmj-hero-slider .carousel-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tmj-hero-slider .carousel-item.active img {
  animation: tmj-kenburns 12s ease-in-out both;
}

@keyframes tmj-kenburns {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.1) translate3d(1.5%, 1%, 0);
  }
}

.tmj-hero-slide-caption {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 5;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  background: rgba(21, 48, 46, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.tmj-hero-slider .carousel-indicators {
  margin-bottom: 12px;
  gap: 6px;
}

.tmj-hero-slider .carousel-indicators [data-bs-target] {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-pill);
  border: 0;
  margin: 0;
  background: rgba(255, 255, 255, 0.6);
  opacity: 1;
  transition: width 250ms ease, background-color 200ms ease;
}

.tmj-hero-slider .carousel-indicators .active {
  width: 24px;
  background: var(--white);
}

.tmj-hero-slider .carousel-control-prev,
.tmj-hero-slider .carousel-control-next {
  width: 42px;
  height: 42px;
  top: 50%;
  bottom: auto;
  transform: translateY(-50%);
  border-radius: 50%;
  background: rgba(21, 48, 46, 0.35);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 200ms ease, background-color 200ms ease;
}

.tmj-hero-slider .carousel-control-prev {
  left: 12px;
}

.tmj-hero-slider .carousel-control-next {
  right: 12px;
}

.tmj-hero-slider:hover .carousel-control-prev,
.tmj-hero-slider:hover .carousel-control-next,
.tmj-hero-slider .carousel-control-prev:focus-visible,
.tmj-hero-slider .carousel-control-next:focus-visible {
  opacity: 1;
}

.tmj-hero-slider .carousel-control-prev:hover,
.tmj-hero-slider .carousel-control-next:hover {
  background: rgba(21, 48, 46, 0.6);
}

.tmj-hero-slider .carousel-control-prev-icon,
.tmj-hero-slider .carousel-control-next-icon {
  width: 1.05rem;
  height: 1.05rem;
}

@media (hover: none) {
  .tmj-hero-slider .carousel-control-prev,
  .tmj-hero-slider .carousel-control-next {
    opacity: 0.55;
  }
}

@media (max-width: 991.98px) {
  .tmj-hero-media {
    margin-top: 8px;
  }

  .tmj-hero-slider {
    aspect-ratio: 16 / 10;
  }
}

/* --- Gallery --- */
.tmj-gallery-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 30px;
}

.tmj-gallery-filter {
  border: 1px solid var(--border-default);
  background: var(--white);
  color: var(--text-body);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  transition: background-color 180ms ease, border-color 180ms ease,
    color 180ms ease;
}

.tmj-gallery-filter:hover {
  border-color: var(--teal);
  color: var(--teal);
}

.tmj-gallery-filter.is-active {
  background: var(--teal);
  border-color: var(--teal);
  color: var(--white);
}

.tmj-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.tmj-gallery-card {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--mist);
  box-shadow: var(--shadow-sm);
  cursor: zoom-in;
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.tmj-gallery-card.is-hidden {
  display: none;
}

.tmj-gallery-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.tmj-gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 450ms ease;
}

.tmj-gallery-card:hover img {
  transform: scale(1.07);
}

.tmj-gallery-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 34px 14px 12px;
  color: var(--white);
  font-size: 0.88rem;
  font-weight: 600;
  text-align: left;
  background: linear-gradient(to top, rgba(21, 48, 46, 0.78), transparent);
}

.tmj-gallery-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--petrol);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  padding-left: 4px;
  box-shadow: var(--shadow-sm);
  transition: transform 220ms cubic-bezier(0.34, 1.56, 0.64, 1),
    background-color 200ms ease;
}

.tmj-gallery-card:hover .tmj-gallery-play {
  transform: translate(-50%, -50%) scale(1.14);
  background: var(--white);
}

@media (max-width: 991.98px) {
  .tmj-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 575.98px) {
  .tmj-gallery-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

/* --- Gallery lightbox --- */
.tmj-no-scroll {
  overflow: hidden;
}

.tmj-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(10, 26, 25, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: tmj-lightbox-in 220ms ease;
}

.tmj-lightbox[hidden] {
  display: none;
}

@keyframes tmj-lightbox-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.tmj-lightbox-body {
  margin: 0;
  width: 100%;
  max-width: min(1000px, 94vw);
  text-align: center;
}

.tmj-lightbox-media img {
  max-width: 100%;
  max-height: 76vh;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}

.tmj-lightbox-media.is-video {
  width: 100%;
  aspect-ratio: 16 / 9;
}

.tmj-lightbox-media.is-video iframe {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}

.tmj-lightbox-caption {
  color: rgba(255, 255, 255, 0.85);
  margin-top: 14px;
  font-size: 0.95rem;
  min-height: 1.2em;
}

.tmj-lightbox-close,
.tmj-lightbox-prev,
.tmj-lightbox-next {
  position: absolute;
  z-index: 5;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: var(--white);
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 180ms ease;
}

.tmj-lightbox-close:hover,
.tmj-lightbox-prev:hover,
.tmj-lightbox-next:hover {
  background: rgba(255, 255, 255, 0.28);
}

.tmj-lightbox-close {
  top: 18px;
  right: 18px;
}

.tmj-lightbox-prev {
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
}

.tmj-lightbox-next {
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
}

@media (max-width: 575.98px) {
  .tmj-lightbox {
    padding: 14px;
  }

  .tmj-lightbox-close,
  .tmj-lightbox-prev,
  .tmj-lightbox-next {
    width: 40px;
    height: 40px;
    font-size: 1.05rem;
  }

  .tmj-lightbox-prev {
    left: 8px;
  }

  .tmj-lightbox-next {
    right: 8px;
  }
}

/* --- Floating contact widget --- */
.tmj-fab {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1050;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.tmj-fab-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.tmj-fab-item {
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0;
  transform: translateY(14px) scale(0.7);
  pointer-events: none;
  transition: opacity 220ms ease,
    transform 260ms cubic-bezier(0.34, 1.56, 0.64, 1);
  transition-delay: calc(var(--fab-i, 0) * 45ms);
}

.tmj-fab.is-open .tmj-fab-item {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.tmj-fab-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--fab-bg, var(--teal));
  color: var(--white);
  font-size: 1.35rem;
  box-shadow: 0 10px 24px -8px rgba(14, 77, 74, 0.45);
  transition: transform 200ms ease, filter 200ms ease;
}

.tmj-fab-btn:hover,
.tmj-fab-btn:focus {
  color: var(--white);
  transform: translateY(-2px) scale(1.06);
  filter: brightness(1.08);
}

.tmj-fab-label {
  background: var(--ink);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
  opacity: 0;
  transform: translateX(6px);
  transition: opacity 180ms ease, transform 180ms ease;
  pointer-events: none;
}

.tmj-fab-item:hover .tmj-fab-label,
.tmj-fab-item:focus-within .tmj-fab-label {
  opacity: 1;
  transform: none;
}

.tmj-fab-toggle {
  position: relative;
  width: 58px;
  height: 58px;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal) 0%, var(--petrol) 100%);
  color: var(--white);
  font-size: 1.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 14px 30px -10px rgba(14, 77, 74, 0.55);
  transition: transform 200ms ease;
}

.tmj-fab-toggle:hover {
  transform: scale(1.05);
}

.tmj-fab-toggle::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--teal-soft);
  opacity: 0.45;
  z-index: -1;
  animation: tmj-fab-pulse 2.4s ease-out infinite;
}

.tmj-fab.is-open .tmj-fab-toggle::before {
  animation: none;
  opacity: 0;
}

@keyframes tmj-fab-pulse {
  0% {
    transform: scale(1);
    opacity: 0.45;
  }
  70%,
  100% {
    transform: scale(1.55);
    opacity: 0;
  }
}

.tmj-fab-toggle .bi {
  transition: opacity 180ms ease, transform 260ms ease;
}

.tmj-fab-icon-close {
  position: absolute;
  opacity: 0;
  transform: rotate(-90deg) scale(0.6);
}

.tmj-fab.is-open .tmj-fab-icon-open {
  opacity: 0;
  transform: rotate(90deg) scale(0.6);
}

.tmj-fab.is-open .tmj-fab-icon-close {
  opacity: 1;
  transform: none;
}

@media (max-width: 575.98px) {
  .tmj-fab {
    right: 14px;
    bottom: 14px;
  }

  .tmj-fab-label {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
