@font-face {
  font-family: "Thmanyah Serif Display";
  src: url("assets/fonts/thmanyah-serif-display/thmanyahserifdisplay-Light.woff2") format("woff2");
  font-style: normal;
  font-weight: 300;
  font-display: swap;
}

@font-face {
  font-family: "Thmanyah Serif Display";
  src: url("assets/fonts/thmanyah-serif-display/thmanyahserifdisplay-Regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Thmanyah Serif Display";
  src: url("assets/fonts/thmanyah-serif-display/thmanyahserifdisplay-Medium.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Thmanyah Serif Display";
  src: url("assets/fonts/thmanyah-serif-display/thmanyahserifdisplay-Bold.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Thmanyah Serif Display";
  src: url("assets/fonts/thmanyah-serif-display/thmanyahserifdisplay-Bold.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Thmanyah Serif Display";
  src: url("assets/fonts/thmanyah-serif-display/thmanyahserifdisplay-Black.woff2") format("woff2");
  font-style: normal;
  font-weight: 900;
  font-display: swap;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 300;
  padding: 10px 14px;
  color: #06101f;
  background: #8fffe2;
  transform: translateY(-160%);
  transition: transform 160ms ease-out;
}

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

.subpage-body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 88% 4%, rgba(65, 165, 255, 0.1), transparent 22%),
    linear-gradient(180deg, #00030a 0%, #020814 48%, #00030a 100%);
}

.subpage-body::after {
  opacity: 0.32;
}

.subpage-header.site-header {
  position: sticky !important;
  inset: 0 0 auto !important;
  z-index: 100;
  width: 100% !important;
  min-height: 76px;
  margin: 0 !important;
  padding: 0 max(20px, calc((100vw - 1260px) / 2)) !important;
  border-bottom: 1px solid rgba(143, 255, 226, 0.14) !important;
  background: rgba(0, 3, 10, 0.96) !important;
  transform: none !important;
}

.subpage-header .brand {
  width: clamp(190px, 17vw, 250px);
  height: 72px;
  flex: 0 0 auto;
}

.home-page-header.site-header {
  position: relative !important;
  inset: auto !important;
  width: min(1260px, calc(100% - 40px)) !important;
  margin: 0 auto !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

.subpage-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(14px, 1.8vw, 26px);
  min-height: 76px;
  color: #dce7f5;
  font-size: 15px;
  font-weight: 500;
}

.subpage-nav > a,
.nav-details > summary {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: inherit;
  cursor: pointer;
  transition: color 160ms ease-out;
}

.subpage-nav > a:hover,
.subpage-nav > a:focus-visible,
.nav-details > summary:hover,
.nav-details > summary:focus-visible,
.nav-details[open] > summary {
  color: #8fffe2;
}

.nav-details {
  position: relative;
}

.nav-details > summary {
  list-style: none;
  gap: 7px;
}

.nav-details > summary::-webkit-details-marker {
  display: none;
}

.nav-details > summary::after {
  content: "";
  width: 6px;
  height: 6px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 160ms ease-out;
}

.nav-details[open] > summary::after {
  transform: translateY(2px) rotate(225deg);
}

.nav-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 120;
  padding: 18px;
  border: 1px solid rgba(143, 255, 226, 0.18);
  border-radius: 10px;
  background: #061224;
}

.nav-dropdown::before {
  content: "";
  position: absolute;
  inset: -9px 0 auto;
  height: 9px;
}

.nav-dropdown a {
  display: block;
  padding: 8px 10px;
  border-radius: 6px;
  color: #c9d8e9;
  line-height: 1.35;
  transition: color 140ms ease-out, background-color 140ms ease-out;
}

.nav-dropdown a:hover,
.nav-dropdown a:focus-visible {
  color: #ffffff;
  background: rgba(143, 255, 226, 0.08);
}

.nav-dropdown-compact {
  width: 250px;
}

.nav-mega {
  right: min(-230px, calc((100vw - 1260px) / -2));
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: min(1000px, calc(100vw - 40px));
  padding: 24px;
  gap: 24px;
}

.nav-service-heading {
  margin: 0 10px 9px;
  color: #8fffe2;
  font-family: Manrope, "Avenir Next", sans-serif;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
}

.nav-service-toggle {
  display: none;
}

.nav-service-links {
  display: grid;
}

.subpage-nav .nav-book {
  min-height: 40px;
  padding: 0 17px;
  border: 1px solid rgba(143, 255, 226, 0.42);
  border-radius: 8px;
  color: #ffffff;
  background: rgba(143, 255, 226, 0.08);
  white-space: nowrap;
}

.subpage-nav .nav-book:hover,
.subpage-nav .nav-book:focus-visible {
  color: #06101f;
  background: #8fffe2;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 11px 9px;
  border: 1px solid rgba(143, 255, 226, 0.3);
  border-radius: 8px;
  background: transparent;
}

.menu-toggle > span:not(.screen-reader-text) {
  display: block;
  width: 100%;
  height: 1px;
  margin: 5px 0;
  background: #f9fdff;
}

.subpage-main {
  overflow: clip;
}

.page-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  width: min(1260px, calc(100% - 40px));
  min-height: clamp(390px, 53vw, 610px);
  margin: 24px auto 0;
  overflow: hidden;
  border: 1px solid rgba(143, 255, 226, 0.28);
  border-radius: 18px;
  background:
    radial-gradient(circle at 78% 25%, rgba(65, 165, 255, 0.28), transparent 36%),
    linear-gradient(135deg, #061224, #020814);
  background-image:
    linear-gradient(90deg, rgba(0, 3, 10, 0.78), rgba(0, 3, 10, 0.28)),
    var(--page-hero-image, none);
  background-position: center;
  background-size: cover;
}

.page-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(0, 3, 10, 0.05), rgba(0, 3, 10, 0.76)),
    linear-gradient(90deg, rgba(0, 3, 10, 0.52), transparent 72%);
}

.page-hero-content {
  position: relative;
  z-index: 2;
  width: min(780px, 100%);
  padding: clamp(34px, 6vw, 78px);
}

.page-hero-content > p {
  margin: 0 0 15px;
  color: #8fffe2;
  font-size: 14px;
  font-weight: 600;
}

.page-hero h1 {
  max-width: 13ch;
  color: #f9fdff;
  font-size: clamp(45px, 7vw, 88px);
  line-height: 0.98;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.content-section {
  position: relative;
  padding: clamp(68px, 8vw, 118px) 20px;
}

.content-section-alt {
  border-top: 1px solid rgba(174, 224, 255, 0.1);
  border-bottom: 1px solid rgba(174, 224, 255, 0.1);
  background: rgba(6, 18, 36, 0.52);
}

.content-shell {
  width: min(1180px, 100%);
  margin-inline: auto;
}

.content-grid {
  display: grid;
  align-items: center;
  gap: clamp(34px, 6vw, 82px);
}

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

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

.content-grid.columns-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 48px);
}

.content-column {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.content-grid.columns-1 > .content-column {
  width: min(900px, 100%);
  margin-inline: auto;
}

.content-copy:empty {
  display: none;
}

.content-copy > :first-child {
  margin-top: 0;
}

.content-copy > :last-child {
  margin-bottom: 0;
}

.content-copy h2,
.content-copy h3,
.content-copy h4,
.content-copy h5,
.content-copy h6 {
  max-width: 18ch;
  margin: 0 0 22px;
  color: #f9fdff;
  text-wrap: balance;
}

.content-copy h2 {
  font-size: clamp(34px, 4.6vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.02em;
}

.content-copy h3 {
  font-size: clamp(27px, 3vw, 42px);
  line-height: 1.1;
}

.content-copy h4 {
  font-size: clamp(22px, 2.3vw, 31px);
  line-height: 1.18;
}

.content-copy h5,
.content-copy h6 {
  font-family: Manrope, "Avenir Next", sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #8fffe2;
}

.content-copy p,
.content-copy li,
.content-copy blockquote,
.content-copy td,
.content-copy th {
  color: #d7e3f1;
  font-size: clamp(16px, 1.35vw, 18px);
  line-height: 1.78;
}

.content-copy p {
  max-width: 72ch;
  margin: 0 0 22px;
  text-wrap: pretty;
}

.content-copy strong {
  color: #ffffff;
  font-weight: 600;
}

.content-copy a,
.text-link {
  color: #8fffe2;
  text-decoration: underline;
  text-decoration-color: rgba(143, 255, 226, 0.35);
  text-underline-offset: 4px;
}

.content-copy ul,
.content-copy ol {
  max-width: 72ch;
  margin: 24px 0;
  padding-left: 1.3em;
}

.content-copy li {
  padding-left: 8px;
  margin: 10px 0;
}

.content-copy li::marker {
  color: #8fffe2;
}

.content-copy blockquote {
  max-width: 66ch;
  margin: 34px 0;
  padding: 22px 0 22px 28px;
  border-left: 1px solid #8fffe2;
  color: #f9fdff;
}

.content-copy table {
  width: 100%;
  margin: 28px 0;
  border-collapse: collapse;
}

.content-copy th,
.content-copy td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(174, 224, 255, 0.16);
  text-align: left;
}

.page-media,
.page-video {
  width: 100%;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(143, 255, 226, 0.16);
  border-radius: 14px;
  background: #020814;
}

.page-media img,
.page-media video {
  display: block;
  width: 100%;
  height: auto;
  max-height: 760px;
  object-fit: cover;
}

.content-grid.columns-3 .page-media img {
  aspect-ratio: 1 / 1;
}

.page-embed {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid rgba(143, 255, 226, 0.16);
  border-radius: 14px;
}

.page-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.page-cta {
  padding: clamp(48px, 7vw, 90px) 20px;
}

.page-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: clamp(30px, 4vw, 52px);
  border-top: 1px solid rgba(143, 255, 226, 0.28);
  border-bottom: 1px solid rgba(143, 255, 226, 0.28);
}

.page-cta h2 {
  max-width: 17ch;
  color: #f9fdff;
  font-size: clamp(31px, 4vw, 54px);
  line-height: 1.05;
}

.appointment-section {
  padding: clamp(70px, 9vw, 124px) 20px;
  border-top: 1px solid rgba(143, 255, 226, 0.14);
  background: #051021;
}

.appointment-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.65fr) minmax(0, 1.35fr);
  gap: clamp(42px, 7vw, 96px);
  align-items: start;
}

.appointment-intro h2 {
  max-width: 12ch;
  margin-bottom: 20px;
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.03;
}

.appointment-intro p {
  max-width: 36ch;
  color: #c4d3e4;
  font-size: 17px;
  line-height: 1.7;
}

.appointment-form {
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid rgba(143, 255, 226, 0.18);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 21px;
  margin-bottom: 28px;
}

.appointment-form label {
  display: flex;
  flex-direction: column;
  gap: 9px;
  color: #dce7f5;
  font-size: 14px;
  font-weight: 500;
}

.form-wide {
  grid-column: 1 / -1;
}

.appointment-form input,
.appointment-form select,
.appointment-form textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid rgba(174, 224, 255, 0.24);
  border-radius: 8px;
  outline: 0;
  color: #f9fdff;
  background: #020814;
  font: inherit;
  transition: border-color 140ms ease-out, box-shadow 140ms ease-out;
}

.appointment-form textarea {
  min-height: 132px;
  resize: vertical;
}

.appointment-form input:focus,
.appointment-form select:focus,
.appointment-form textarea:focus {
  border-color: #8fffe2;
  box-shadow: 0 0 0 3px rgba(143, 255, 226, 0.12);
}

.appointment-form select option {
  color: #06101f;
  background: #ffffff;
}

.appointment-form .button {
  min-height: 50px;
  padding: 0 22px;
  border-radius: 8px;
  font: inherit;
  cursor: pointer;
}

.appointment-form .button:disabled {
  opacity: 0.58;
  cursor: wait;
}

.form-trap {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.form-status {
  min-height: 1.5em;
  margin: 16px 0 0;
  color: #c4d3e4;
}

.form-status.is-success {
  color: #8fffe2;
}

.form-status.is-error {
  color: #ffb4ab;
}

[data-reveal] {
  opacity: 1;
  transform: none;
}

.js-motion [data-reveal] {
  opacity: 1;
  transform: none;
}

@media (max-width: 1040px) {
  body.is-navigation-open {
    overflow: hidden;
  }

  .subpage-header.site-header {
    padding-inline: 20px !important;
  }

  .menu-toggle {
    display: block;
    margin-left: auto;
  }

  .subpage-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    max-height: calc(100vh - 76px);
    max-height: calc(100dvh - 76px);
    padding: 16px 20px calc(24px + env(safe-area-inset-bottom));
    overflow-y: auto;
    overscroll-behavior: contain;
    touch-action: pan-y;
    -webkit-overflow-scrolling: touch;
    border-top: 1px solid rgba(143, 255, 226, 0.14);
    border-bottom: 1px solid rgba(143, 255, 226, 0.14);
    background: #00030a;
  }

  .subpage-header.is-menu-open .subpage-nav {
    display: flex;
  }

  .subpage-nav > a,
  .nav-details > summary {
    min-height: 48px;
    padding-inline: 8px;
  }

  .nav-details {
    width: 100%;
  }

  .nav-details > summary {
    justify-content: space-between;
  }

  .nav-dropdown,
  .nav-mega {
    position: static;
    display: grid;
    width: 100%;
    margin-bottom: 12px;
    padding: 14px 10px 16px;
    border: 0;
    border-radius: 0;
    background: #051021;
  }

  .nav-mega {
    display: block;
    padding: 4px 10px 10px;
  }

  .nav-service-heading {
    display: none;
  }

  .nav-service-group + .nav-service-group {
    border-top: 1px solid rgba(174, 224, 255, 0.12);
  }

  .nav-service-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 50px;
    padding: 10px 8px;
    border: 0;
    border-radius: 0;
    color: #e5eef8;
    background: transparent;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    text-align: left;
    cursor: pointer;
  }

  .nav-service-toggle:hover,
  .nav-service-toggle:focus-visible,
  .nav-service-group.is-open > .nav-service-toggle {
    color: #8fffe2;
  }

  .nav-service-toggle:focus-visible {
    outline: 1px solid #8fffe2;
    outline-offset: -2px;
  }

  .nav-service-toggle > span {
    width: 7px;
    height: 7px;
    flex: 0 0 auto;
    margin-left: 16px;
    border-right: 1px solid currentColor;
    border-bottom: 1px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
    transition: transform 160ms ease-out;
  }

  .nav-service-group.is-open > .nav-service-toggle > span {
    transform: translateY(2px) rotate(225deg);
  }

  .nav-service-links {
    display: none;
    padding: 0 6px 12px 12px;
  }

  .nav-service-group.is-open > .nav-service-links {
    display: grid;
  }

  .nav-service-links a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 9px 10px;
  }

  .nav-dropdown::before {
    display: none;
  }

  .subpage-nav .nav-book {
    justify-content: center;
    margin-top: 8px;
  }

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

@media (max-width: 760px) {
  .subpage-header.site-header {
    min-height: 66px;
    margin: 0 !important;
    padding-inline: 16px !important;
  }

  .subpage-header .brand {
    width: 176px;
    height: 64px;
  }

  .home-page-header.site-header {
    width: calc(100% - 32px) !important;
    margin: 0 16px !important;
    padding: 0 !important;
  }

  .home-page-header .subpage-nav {
    left: -16px;
    right: -16px;
  }

  .subpage-nav {
    max-height: calc(100vh - 66px);
    max-height: calc(100dvh - 66px);
    padding-inline: 16px;
  }

  .page-hero {
    width: calc(100% - 32px);
    min-height: 430px;
    margin-top: 16px;
    border-radius: 14px;
    background-position: 58% center;
  }

  .page-hero-content {
    padding: 30px 24px;
  }

  .page-hero h1 {
    max-width: 11ch;
    font-size: clamp(42px, 14vw, 62px);
  }

  .content-section {
    padding: 68px 20px;
  }

  .content-grid.columns-2,
  .content-grid.columns-3 {
    grid-template-columns: 1fr;
  }

  .content-grid {
    gap: 38px;
  }

  .content-copy h2 {
    font-size: clamp(34px, 11vw, 48px);
  }

  .page-cta-inner {
    align-items: flex-start;
    flex-direction: column;
    padding-inline: 0;
  }

  .appointment-layout,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-wide {
    grid-column: auto;
  }

  .appointment-form {
    padding: 22px;
  }

}

/* Final narrow-screen containment: use the layout viewport, not scrollbar-inclusive vw units. */
@media (max-width: 760px) {
  html,
  body {
    width: auto !important;
    max-width: none !important;
  }

  main,
  .subpage-main {
    width: auto !important;
    max-width: 100% !important;
  }

  .home-page-header.site-header {
    width: auto !important;
    max-width: none !important;
    margin: 0 16px !important;
  }

  .subpage-header.site-header:not(.home-page-header) {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
  }

  .hero {
    width: auto !important;
    max-width: none !important;
    margin: 18px 16px 38px !important;
  }

  .page-hero {
    width: auto !important;
    max-width: none !important;
    margin-inline: 16px !important;
  }

  .proof-strip,
  .section-pad {
    width: auto !important;
    max-width: none !important;
    margin-inline: 16px !important;
  }

}

@media (prefers-reduced-motion: reduce) {
  .js-motion [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }

  .nav-details > summary::after,
  .skip-link,
  .appointment-form input,
  .appointment-form select,
  .appointment-form textarea {
    transition: none;
  }
}

/* Final responsive and accessibility QA. */
@media (min-width: 1041px) and (max-width: 1200px) {
  .nav-mega {
    position: fixed;
    top: 68px;
    right: auto;
    left: 50%;
    width: min(1000px, calc(100vw - 40px));
    transform: translateX(-50%);
  }
}

.testimonial-dots button {
  position: relative;
  width: 24px;
  height: 24px;
  background: transparent;
}

.testimonial-dots button::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
}

.testimonial-dots button.is-active {
  background: transparent;
}

.testimonial-dots button.is-active::before {
  background: var(--page-aqua);
}

@media (max-width: 760px) {
  .appointment-form input,
  .appointment-form select,
  .appointment-form textarea {
    font-size: 16px;
  }
}

/* Page-aware reconstruction v2 */

.subpage-body {
  --page-ink: #f7fbff;
  --page-copy: #c7d5e6;
  --page-muted: #8fa3b8;
  --page-aqua: #8fffe2;
  --page-blue: #4aa7ff;
  --page-line: rgba(174, 224, 255, 0.16);
  --page-panel: rgba(7, 20, 39, 0.72);
  max-width: 100%;
  overflow-x: clip;
}

.subpage-body .content-shell,
.subpage-body .content-grid,
.subpage-body .content-column,
.subpage-body .content-widget {
  min-width: 0;
  max-width: 100%;
}

.subpage-body .page-media img,
.subpage-body .page-media video {
  max-width: 100%;
}

.page-hero-compact {
  min-height: clamp(260px, 30vw, 380px);
  background-image:
    radial-gradient(circle at 82% 20%, rgba(74, 167, 255, 0.24), transparent 34%),
    linear-gradient(135deg, #07172b 0%, #020814 64%);
}

.page-hero-ambient {
  isolation: isolate;
  background:
    radial-gradient(circle at 84% 48%, rgba(74, 167, 255, 0.16), transparent 32%),
    linear-gradient(135deg, rgba(7, 23, 43, 0.88) 0%, rgba(2, 8, 20, 0.58) 68%);
}

.page-hero-diagnostic {
  position: absolute;
  inset: 0 0 0 auto;
  z-index: 0;
  width: min(59%, 720px);
  overflow: hidden;
  pointer-events: none;
  opacity: 0.78;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.68) 22%, #000 48%);
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.68) 22%, #000 48%);
}

.page-hero-diagnostic-sweep {
  position: absolute;
  top: -18%;
  bottom: -18%;
  left: -32%;
  width: 20%;
  background: linear-gradient(90deg, transparent, rgba(143, 255, 226, 0.16), transparent);
  border-right: 1px solid rgba(143, 255, 226, 0.35);
  transform: translate3d(0, 0, 0) skewX(-7deg);
  animation: page-hero-diagnostic-scan 11s linear infinite;
}

@keyframes page-hero-diagnostic-scan {
  to {
    transform: translate3d(690%, 0, 0) skewX(-7deg);
  }
}

.page-hero-immersive {
  min-height: clamp(570px, 57vw, 720px);
  background-position: center;
}

.page-hero-compact .page-hero-overlay {
  background:
    linear-gradient(90deg, rgba(0, 3, 10, 0.56), transparent 74%),
    linear-gradient(180deg, transparent, rgba(0, 3, 10, 0.44));
}

.page-hero-compact .page-hero-content {
  width: 100%;
  padding-block: clamp(40px, 6vw, 76px);
}

.team-directory-section {
  position: relative;
  padding-top: clamp(72px, 8vw, 112px) !important;
  padding-bottom: clamp(82px, 9vw, 126px) !important;
}

.team-directory-section .team-layout {
  width: min(1180px, 100%);
  margin-inline: auto;
}

.team-directory-section .doctor-lead p {
  color: #c4d3e4;
}

.team-directory-section .team-track .doctor {
  border-top: 1px solid rgba(143, 255, 226, 0.16) !important;
}

@media (max-width: 900px) {
  .page-hero-diagnostic {
    width: 72%;
    opacity: 0.58;
    transform: translateX(8%);
  }
}

@media (max-width: 760px) {
  .page-hero-ambient {
    background:
      radial-gradient(circle at 92% 24%, rgba(74, 167, 255, 0.14), transparent 40%),
      linear-gradient(145deg, rgba(7, 23, 43, 0.92), rgba(2, 8, 20, 0.7));
  }

  .page-hero-diagnostic {
    width: 94%;
    opacity: 0.4;
    transform: translateX(22%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 42%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 42%);
  }

  .page-hero-compact .page-hero-overlay {
    background:
      linear-gradient(90deg, rgba(0, 3, 10, 0.82), rgba(0, 3, 10, 0.2) 88%),
      linear-gradient(180deg, rgba(0, 3, 10, 0.12), rgba(0, 3, 10, 0.66));
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-hero-diagnostic-sweep {
    animation: none;
    transform: translate3d(360%, 0, 0) skewX(-7deg);
  }
}

.page-hero-compact h1 {
  max-width: 18ch;
  font-size: clamp(44px, 6.2vw, 78px);
  overflow-wrap: anywhere;
}

.page-breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  color: var(--page-muted);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.page-breadcrumb a {
  color: var(--page-aqua);
}

.page-breadcrumb a:hover,
.page-breadcrumb a:focus-visible {
  color: #fff;
}

.page-hero-support {
  max-width: 690px;
  margin-top: 26px;
}

.page-hero-support:empty {
  display: none;
}

.page-hero-support h2,
.page-hero-support h3,
.page-hero-support h4 {
  max-width: 25ch;
  margin: 0 0 14px;
  font-family: Manrope, "Avenir Next", sans-serif;
  font-size: clamp(19px, 2vw, 27px);
  font-weight: 500;
  line-height: 1.3;
}

.page-hero-support p,
.page-hero-support li {
  color: #e5eef8;
  font-size: 16px;
  line-height: 1.65;
}

.page-hero-support ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-hero-support li {
  position: relative;
  padding-left: 23px;
}

.page-hero-support li::before {
  content: "";
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 8px;
  height: 1px;
  background: var(--page-aqua);
}

.page-hero-support .text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 12px;
  padding: 0 18px;
  border: 1px solid rgba(143, 255, 226, 0.42);
  border-radius: 8px;
  color: #07101e;
  background: var(--page-aqua);
  font-weight: 600;
  text-decoration: none;
}

.content-section {
  padding: clamp(72px, 8vw, 108px) 20px;
}

.source-section {
  border: 0;
  background: transparent;
}

.source-section.content-section-alt {
  border-top: 1px solid rgba(174, 224, 255, 0.08);
  border-bottom: 1px solid rgba(174, 224, 255, 0.08);
  background:
    radial-gradient(circle at 88% 12%, rgba(74, 167, 255, 0.075), transparent 30%),
    rgba(5, 16, 33, 0.48);
}

.source-divider {
  width: min(1180px, calc(100% - 40px));
  height: 1px;
  margin-inline: auto;
  background: linear-gradient(90deg, transparent, rgba(143, 255, 226, 0.28) 16%, rgba(174, 224, 255, 0.16) 84%, transparent);
}

.content-grid {
  align-items: start;
}

.content-grid.columns-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 38px);
}

.content-column {
  min-width: 0;
  gap: 22px;
}

.content-column-empty {
  min-height: 1px;
}

.content-widget + .content-widget {
  margin-top: 30px;
}

.content-widget > :first-child,
.content-widget .content-copy > :first-child {
  margin-top: 0;
}

.content-widget > :last-child,
.content-widget .content-copy > :last-child {
  margin-bottom: 0;
}

.content-copy h2,
.content-copy h3,
.content-copy h4,
.content-copy h5,
.content-copy h6 {
  max-width: 26ch;
  text-wrap: balance;
}

.content-copy h2 {
  font-size: clamp(34px, 3.8vw, 52px);
  line-height: 1.07;
}

.content-copy h3 {
  font-size: clamp(27px, 2.8vw, 38px);
  line-height: 1.12;
}

.content-copy h4 {
  font-family: Manrope, "Avenir Next", sans-serif;
  font-size: clamp(20px, 2vw, 27px);
  font-weight: 500;
  line-height: 1.32;
}

.content-copy p,
.content-copy li,
.content-copy blockquote,
.content-copy td,
.content-copy th {
  color: var(--page-copy);
  font-size: clamp(16px, 1.25vw, 18px);
  line-height: 1.75;
}

.content-copy p {
  max-width: 70ch;
}

.page-media {
  border-color: rgba(143, 255, 226, 0.18);
  border-radius: 12px;
  background: #061224;
}

.page-media img {
  width: 100%;
  max-height: none;
  object-fit: cover;
}

.page-media-missing {
  aspect-ratio: 1 / 1;
}

.media-placeholder {
  display: grid;
  width: 100%;
  height: 100%;
  min-height: 320px;
  place-items: center;
  background:
    radial-gradient(circle at 50% 38%, rgba(143, 255, 226, 0.1), transparent 18%),
    linear-gradient(145deg, #071a30, #020814);
}

.media-placeholder span {
  color: var(--page-muted);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.source-accordion {
  width: 100%;
  border-bottom: 1px solid var(--page-line);
}

.accordion-item {
  border-top: 1px solid var(--page-line);
  background: transparent;
  transition: background-color 180ms ease-out;
}

.accordion-item[open] {
  background: rgba(143, 255, 226, 0.045);
}

.accordion-summary {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 24px;
  align-items: center;
  gap: 18px;
  min-height: 78px;
  padding: 15px 8px;
  color: var(--page-ink);
  cursor: pointer;
  list-style: none;
}

.accordion-summary::-webkit-details-marker {
  display: none;
}

.accordion-summary:hover,
.accordion-summary:focus-visible {
  color: var(--page-aqua);
}

.accordion-index {
  color: var(--page-muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
}

.accordion-question {
  font-size: clamp(17px, 1.55vw, 21px);
  font-weight: 500;
  line-height: 1.42;
  text-wrap: pretty;
}

.accordion-icon {
  position: relative;
  width: 20px;
  height: 20px;
}

.accordion-icon::before,
.accordion-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 1px;
  background: currentColor;
  transform: translate(-50%, -50%);
  transition: transform 180ms ease-out;
}

.accordion-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.accordion-item[open] .accordion-icon::after {
  transform: translate(-50%, -50%) rotate(0deg);
}

.accordion-answer {
  max-width: 76ch;
  padding: 0 50px 30px 78px;
}

.accordion-answer > :first-child {
  margin-top: 0;
}

.accordion-answer > :last-child {
  margin-bottom: 0;
}

.accordion-answer h2,
.accordion-answer h3,
.accordion-answer h4 {
  margin-top: 28px;
  font-family: Manrope, "Avenir Next", sans-serif;
  font-size: 18px;
  line-height: 1.45;
}

.accordion-item-static .accordion-summary {
  grid-template-columns: 52px minmax(0, 1fr);
  color: var(--page-copy);
  cursor: default;
}

.source-visual-banner {
  width: min(1260px, calc(100% - 40px));
  min-height: clamp(420px, 52vw, 650px);
  margin: 24px auto 0;
  overflow: hidden;
  border: 1px solid rgba(143, 255, 226, 0.18);
  border-radius: 18px;
  background-image:
    linear-gradient(180deg, rgba(0, 3, 10, 0.02), rgba(0, 3, 10, 0.2)),
    var(--source-banner-image);
  background-position: center;
  background-size: cover;
}

.testimonial-section {
  position: relative;
  min-height: 520px;
  padding: clamp(80px, 9vw, 126px) 20px;
  overflow: hidden;
}

.testimonial-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 3, 10, 0.94), rgba(0, 3, 10, 0.7)),
    radial-gradient(circle at 80% 20%, rgba(74, 167, 255, 0.2), transparent 32%);
}

.testimonial-shell {
  position: relative;
  z-index: 1;
  width: min(920px, 100%);
}

.testimonial-track {
  min-height: 260px;
}

.testimonial-slide {
  display: none;
  margin: 0;
  padding: 0;
  border: 0;
}

.testimonial-slide:first-child,
.testimonial-slide.is-active {
  display: block;
}

.testimonial-shell.is-ready .testimonial-slide:first-child:not(.is-active) {
  display: none;
}

.testimonial-title {
  margin: 0 0 22px;
  color: var(--page-aqua);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.testimonial-quote {
  max-width: 25ch;
  margin: 0 0 25px;
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(32px, 4.2vw, 58px);
  line-height: 1.12;
  text-wrap: balance;
}

.testimonial-slide cite {
  color: #c7d5e6;
  font-style: normal;
  font-size: 15px;
}

.testimonial-controls {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 36px;
}

.testimonial-controls > button,
.testimonial-dots button {
  display: grid;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid rgba(143, 255, 226, 0.28);
  border-radius: 50%;
  place-items: center;
  color: #fff;
  background: rgba(0, 3, 10, 0.5);
  cursor: pointer;
}

.testimonial-dots {
  display: flex;
  gap: 8px;
}

.testimonial-dots button {
  width: 8px;
  height: 8px;
  border: 0;
  background: rgba(255, 255, 255, 0.28);
}

.testimonial-dots button.is-active {
  background: var(--page-aqua);
}

.page-about [data-source-section="1"] .content-grid {
  grid-template-columns: minmax(0, 3fr) minmax(320px, 2fr);
}

.page-about [data-source-section="1"] .page-media img {
  aspect-ratio: 4 / 5;
  object-position: 50% 14%;
}

.page-about [data-source-section="2"] .content-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.page-about [data-source-section="2"] .content-widget-feature ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-about [data-source-section="2"] .content-widget-feature li {
  position: relative;
  margin: 0;
  padding: 17px 8px 17px 28px;
  border-top: 1px solid var(--page-line);
  color: #e5eef8;
  font-size: 15px;
  line-height: 1.45;
}

.page-about [data-source-section="2"] .content-widget-feature li::before {
  content: "+";
  position: absolute;
  top: 16px;
  left: 4px;
  color: var(--page-aqua);
}

.page-about [data-source-section="3"] .content-grid,
.page-about [data-source-section="5"] .content-grid {
  grid-template-columns: minmax(300px, 2fr) minmax(0, 3fr);
}

.page-about [data-source-section="3"] .content-column:nth-child(2),
.page-about [data-source-section="5"] .content-column:nth-child(2) {
  padding-top: 10px;
}

.page-about [data-source-section="3"] .content-widget + .content-widget,
.page-about [data-source-section="5"] .content-widget + .content-widget {
  margin-top: 52px;
  padding-top: 48px;
  border-top: 1px solid var(--page-line);
}

.page-type-team [data-source-section="0"] .content-grid {
  grid-template-columns: minmax(320px, 1fr) minmax(0, 1fr);
}

.page-type-team [data-source-section="2"] .content-grid {
  grid-template-columns: minmax(0, 0.22fr) minmax(300px, 1fr) minmax(300px, 1fr) minmax(0, 0.22fr);
  gap: clamp(28px, 5vw, 70px);
}

.page-type-team [data-source-section="2"] .content-column:nth-child(2),
.page-type-team [data-source-section="2"] .content-column:nth-child(3) {
  text-align: center;
}

.page-type-team [data-source-section="2"] .content-column:nth-child(2) .content-widget:first-child,
.page-type-team [data-source-section="2"] .content-column:nth-child(3) .content-widget:first-child {
  min-height: 74px;
}

.page-type-team .page-media,
.page-type-team .page-media img {
  border-radius: 50%;
}

.page-type-team .page-media img {
  aspect-ratio: 1 / 1;
  object-position: center top;
}

.page-type-team [data-source-section="0"] .page-media {
  width: min(520px, 100%);
}

.page-type-team [data-source-section="2"] .content-copy h2 {
  max-width: none;
  margin-inline: auto;
  font-size: clamp(29px, 3vw, 42px);
}

.page-type-team [data-source-section="2"] .content-copy p {
  margin-inline: auto;
  color: #b9c9da;
  font-size: 15px;
  line-height: 1.72;
  text-align: center;
}

.gallery-section {
  padding: clamp(68px, 8vw, 108px) 20px;
}

.gallery-list {
  display: grid;
  gap: clamp(78px, 10vw, 138px);
}

.gallery-case {
  margin: 0;
}

.gallery-case-number {
  margin: 0 0 18px;
  color: var(--page-aqua);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.gallery-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 26px);
}

.gallery-side {
  position: relative;
  min-width: 0;
}

.gallery-side .page-media {
  border-radius: 10px;
}

.gallery-side .page-media img {
  aspect-ratio: 3 / 2;
}

.gallery-side .page-media img.smile-crop-tight {
  transform: translateY(25%) scale(1.5);
  transform-origin: center;
}

.gallery-label {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 31px;
  padding: 0 11px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  color: #fff;
  background: rgba(0, 3, 10, 0.68);
  backdrop-filter: blur(8px);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.page-type-faq .source-section {
  padding-top: clamp(54px, 7vw, 92px);
}

.page-type-faq .content-grid.columns-1 > .content-column {
  width: min(1040px, 100%);
}

.page-type-faq .accordion-summary {
  min-height: 88px;
}

.page-technology .page-hero-content,
.page-contact-3 .page-hero-content {
  width: min(720px, 66%);
}

/* Live-source refinements: technology visual, compact contact hero, and calendar control. */
.page-contact-3 .page-hero-compact {
  min-height: clamp(300px, 34vw, 460px);
}

.date-input-control {
  position: relative;
  display: block;
}

.date-input-control input {
  padding-right: 52px;
}

.date-picker-trigger {
  position: absolute;
  top: 50%;
  right: 10px;
  display: grid;
  width: 34px;
  height: 34px;
  padding: 0;
  place-items: center;
  transform: translateY(-50%);
  border: 1px solid rgba(143, 255, 226, 0.34);
  border-radius: 9px;
  color: #8fffe2;
  background: rgba(2, 8, 20, 0.72);
  cursor: pointer;
}

.date-picker-trigger:hover,
.date-picker-trigger:focus-visible {
  border-color: #8fffe2;
  background: rgba(143, 255, 226, 0.12);
}

.date-picker-trigger svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

@media (max-width: 760px) {
  .page-contact-3 .page-hero-compact {
    min-height: 360px;
  }
}

.page-contact-3 .page-hero.page-hero-compact {
}

.page-technology .page-hero-media {
  position: absolute;
  inset: 28px 28px 28px auto;
  z-index: 2;
  width: min(43%, 520px);
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(143, 255, 226, 0.3);
  border-radius: 18px;
  opacity: 1;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.34);
}

.page-technology .page-hero-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: left center;
}

.page-technology .page-hero-content {
  z-index: 3;
  width: min(880px, 100%);
}

.page-contact-3 .page-hero.page-hero-compact {
  min-height: clamp(110px, 12vw, 170px);
}

.page-contact-3 .page-hero-compact .page-hero-content {
  padding-block: clamp(18px, 2.4vw, 28px);
}

@media (max-width: 760px) {
  .page-contact-3 .page-hero.page-hero-compact {
    min-height: 150px;
  }

  .page-technology .page-hero-media {
    inset: 20px 20px 20px auto;
    width: 56%;
    border-radius: 14px;
  }
}

.page-technology [data-source-section="1"] .content-grid,
.page-technology [data-source-section="3"] .content-grid,
.page-technology [data-source-section="5"] .content-grid,
.page-technology [data-source-section="7"] .content-grid,
.page-technology [data-source-section="9"] .content-grid {
  grid-template-columns: minmax(0, 2fr) minmax(360px, 3fr);
}

.page-technology [data-source-section="2"] .content-column,
.page-technology [data-source-section="4"] .content-column {
  width: min(980px, 100%);
  margin-inline: auto;
}

.page-technology .page-media img {
  aspect-ratio: 3 / 2;
}

.contact-details-section {
  padding: clamp(28px, 3.5vw, 48px) 20px;
}

.contact-details-grid {
  width: min(1260px, 100%);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}

.contact-detail-card,
.working-hours-card,
.contact-map {
  min-width: 0;
  padding: clamp(25px, 3vw, 38px);
  border: 1px solid var(--page-line);
  border-radius: 12px;
  background: rgba(7, 20, 39, 0.72);
}

.contact-detail-label {
  margin: 0 0 18px;
  color: var(--page-aqua);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact-detail-card h2,
.working-hours-card h2 {
  margin: 0 0 24px;
  color: #fff;
  font-size: clamp(27px, 2.8vw, 38px);
  line-height: 1.15;
}

.contact-detail-card address,
.contact-detail-card > a {
  display: block;
  margin: 0 0 12px;
  color: #c7d5e6;
  font-size: 15px;
  font-style: normal;
  line-height: 1.55;
}

.contact-detail-list {
  display: grid;
  gap: 13px;
}

.contact-detail-row {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: center;
  gap: 13px;
  min-width: 0;
  color: #dbe7f4;
  font-size: 15px;
  line-height: 1.45;
}

a.contact-detail-row {
  border-radius: 9px;
  transition: color 160ms ease-out, background-color 160ms ease-out;
}

a.contact-detail-row:hover,
a.contact-detail-row:focus-visible {
  color: var(--page-aqua);
}

a.contact-detail-row:focus-visible {
  outline: 2px solid var(--page-aqua);
  outline-offset: 5px;
}

.contact-detail-row address {
  margin: 0;
  color: inherit;
}

.contact-detail-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(143, 255, 226, 0.22);
  border-radius: 10px;
  color: var(--page-aqua);
  background: rgba(143, 255, 226, 0.07);
}

.contact-detail-icon svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-detail-kind {
  display: block;
  margin-bottom: 2px;
  color: #83a0bb;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  line-height: 1.2;
  text-transform: uppercase;
}

.contact-detail-card > a:hover,
.contact-detail-card > a:focus-visible,
.contact-socials a:hover,
.contact-socials a:focus-visible {
  color: var(--page-aqua);
}

.contact-socials {
  display: flex;
  gap: 18px;
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid var(--page-line);
}

.contact-socials a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}

.contact-socials svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  stroke: none;
}

.contact-socials a:last-child svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.working-hours-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.working-hours-card li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 0;
  border-top: 1px solid rgba(174, 224, 255, 0.12);
  color: #c7d5e6;
  font-size: 13px;
}

.working-hours-card time {
  color: #fff;
  white-space: nowrap;
}

.contact-map {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
}

.contact-map iframe {
  width: 100%;
  min-height: 380px;
  flex: 1;
  border: 0;
  filter: none;
}

.contact-map > a {
  padding: 16px 20px;
  color: var(--page-aqua);
  background: #061224;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
}

.appointment-section {
  position: relative;
  isolation: isolate;
}

.appointment-overlay {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: rgba(2, 8, 20, 0.9);
}

.appointment-layout {
  position: relative;
}

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

.page-type-service .content-grid.columns-1 > .content-column {
  width: min(980px, 100%);
}

.page-tooth-colored-filling [data-source-section="0"] .content-column:nth-child(2),
.page-root-canal-treatment [data-source-section="0"] .content-column:nth-child(2) {
  position: sticky;
  top: 110px;
}

.page-choose-an-aacd-dentist [data-source-section="0"] .page-media {
  padding: 24px;
  background: #fff;
}

.page-choose-an-aacd-dentist [data-source-section="0"] .page-media img {
  object-fit: contain;
}

.page-same-day-service [data-source-section="0"] .content-copy h4 {
  margin: 30px 0;
  padding-left: 22px;
  border-left: 2px solid var(--page-aqua);
  color: var(--page-aqua);
}

@media (max-width: 1040px) {
  .content-grid.columns-4,
  .page-about [data-source-section="2"] .content-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-about [data-source-section="1"] .content-grid,
  .page-about [data-source-section="3"] .content-grid,
  .page-about [data-source-section="5"] .content-grid,
  .page-type-team [data-source-section="0"] .content-grid,
  .page-technology [data-source-section="1"] .content-grid,
  .page-technology [data-source-section="3"] .content-grid,
  .page-technology [data-source-section="5"] .content-grid,
  .page-technology [data-source-section="7"] .content-grid,
  .page-technology [data-source-section="9"] .content-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-type-team [data-source-section="2"] .content-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-type-team [data-source-section="2"] .content-column:first-child,
  .page-type-team [data-source-section="2"] .content-column:last-child {
    display: none;
  }

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

  .contact-map {
    grid-column: 1 / -1;
    min-height: 420px;
  }
}

@media (max-width: 760px) {
  .page-hero-compact,
  .page-hero-immersive {
    min-height: 360px;
  }

  .page-contact-3 .page-hero-immersive {
    min-height: 620px;
  }

  .page-technology .page-hero-immersive {
    min-height: 480px;
  }

  .page-hero-compact .page-hero-content,
  .page-hero-immersive .page-hero-content {
    width: 100%;
    padding: 30px 24px;
  }

  .page-hero-compact h1,
  .page-hero-immersive h1 {
    max-width: 12ch;
    font-size: clamp(40px, 13vw, 58px);
  }

  .page-breadcrumb {
    margin-bottom: 18px;
    font-size: 11px;
  }

  .content-section,
  .gallery-section,
  .contact-details-section {
    padding: 62px 20px;
  }

  .content-grid.columns-4,
  .page-about [data-source-section="1"] .content-grid,
  .page-about [data-source-section="2"] .content-grid,
  .page-about [data-source-section="3"] .content-grid,
  .page-about [data-source-section="5"] .content-grid,
  .page-type-team [data-source-section="0"] .content-grid,
  .page-type-team [data-source-section="2"] .content-grid,
  .page-technology [data-source-section="1"] .content-grid,
  .page-technology [data-source-section="3"] .content-grid,
  .page-technology [data-source-section="5"] .content-grid,
  .page-technology [data-source-section="7"] .content-grid,
  .page-technology [data-source-section="9"] .content-grid,
  .page-type-service .content-grid.columns-2,
  .contact-details-grid,
  .gallery-pair {
    grid-template-columns: 1fr;
  }

  .content-column-empty,
  .page-type-team [data-source-section="2"] .content-column:first-child,
  .page-type-team [data-source-section="2"] .content-column:last-child {
    display: none;
  }

  .page-type-team [data-source-section="2"] .content-column:nth-child(2),
  .page-type-team [data-source-section="2"] .content-column:nth-child(3) {
    margin-bottom: 42px;
  }

  .source-visual-banner {
    width: calc(100% - 32px);
    min-height: 340px;
    margin-top: 16px;
    border-radius: 14px;
  }

  .testimonial-section {
    min-height: 500px;
    padding: 74px 20px;
  }

  .testimonial-track {
    min-height: 300px;
  }

  .accordion-summary {
    grid-template-columns: 34px minmax(0, 1fr) 20px;
    gap: 11px;
    min-height: 74px;
    padding-inline: 2px;
  }

  .accordion-question {
    font-size: 16px;
  }

  .accordion-answer {
    padding: 0 8px 25px 45px;
  }

  .accordion-item-static .accordion-summary {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .gallery-list {
    gap: 86px;
  }

  .gallery-pair {
    gap: 14px;
  }

  .contact-map {
    grid-column: auto;
    min-height: 360px;
  }

  .working-hours-card li {
    font-size: 12px;
  }

  .page-tooth-colored-filling [data-source-section="0"] .content-column:nth-child(2),
  .page-root-canal-treatment [data-source-section="0"] .content-column:nth-child(2) {
    position: static;
  }
}

@media (prefers-reduced-motion: reduce) {
  .accordion-item,
  .accordion-icon::before,
  .accordion-icon::after {
    transition: none;
  }
}

/* Arabic/RTL layer: keeps the approved English layouts while adapting reading flow. */
html[dir="rtl"] body,
html[dir="rtl"] button,
html[dir="rtl"] input,
html[dir="rtl"] select,
html[dir="rtl"] textarea,
html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3,
html[dir="rtl"] h4,
html[dir="rtl"] h5,
html[dir="rtl"] h6,
html[dir="rtl"] .nav-service-heading {
  font-family: "Thmanyah Serif Display", Manrope, "Avenir Next", sans-serif;
}

html[dir="rtl"] body {
  text-align: right;
}

.subpage-nav .nav-language {
  min-width: 42px;
  min-height: 38px;
  justify-content: center;
  padding-inline: 10px;
  border: 1px solid rgba(143, 255, 226, 0.3);
  border-radius: 999px;
  color: #8fffe2;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}

.subpage-nav .nav-language:hover,
.subpage-nav .nav-language:focus-visible {
  color: #06101f;
  background: #8fffe2;
}

html[dir="rtl"] .skip-link {
  right: 12px;
  left: auto;
}

html[dir="rtl"] .subpage-header .brand {
  width: clamp(172px, 15vw, 220px);
}

html[dir="rtl"] .subpage-nav {
  gap: clamp(10px, 1.25vw, 18px);
  font-size: 14px;
}

html[dir="rtl"] .nav-dropdown {
  right: auto;
  left: 0;
  text-align: right;
}

html[dir="rtl"] .nav-mega {
  right: auto;
  left: min(-230px, calc((100vw - 1260px) / -2));
}

html[dir="rtl"] .page-hero {
  background-image:
    linear-gradient(270deg, rgba(0, 3, 10, 0.78), rgba(0, 3, 10, 0.28)),
    var(--page-hero-image, none);
}

html[dir="rtl"] .page-hero-overlay {
  background:
    linear-gradient(180deg, rgba(0, 3, 10, 0.05), rgba(0, 3, 10, 0.76)),
    linear-gradient(270deg, rgba(0, 3, 10, 0.52), transparent 72%);
}

html[dir="rtl"] .page-hero h1 {
  max-width: 16ch;
  letter-spacing: 0;
  line-height: 1.12;
}

html[dir="rtl"] .content-copy ul,
html[dir="rtl"] .content-copy ol {
  padding-right: 1.3em;
  padding-left: 0;
}

html[dir="rtl"] .content-copy li {
  padding-right: 8px;
  padding-left: 0;
}

html[dir="rtl"] .content-copy blockquote {
  padding: 22px 28px 22px 0;
  border-right: 1px solid #8fffe2;
  border-left: 0;
}

html[dir="rtl"] .content-copy th,
html[dir="rtl"] .content-copy td {
  text-align: right;
}

html[dir="rtl"] .page-hero-support li {
  padding-right: 23px;
  padding-left: 0;
}

html[dir="rtl"] .page-hero-support li::before {
  right: 0;
  left: auto;
}

html[dir="rtl"] .page-same-day-service [data-source-section="0"] .content-copy h4 {
  padding-right: 22px;
  padding-left: 0;
  border-right: 2px solid var(--page-aqua);
  border-left: 0;
}

html[dir="rtl"] .date-input-control input {
  padding-right: 16px;
  padding-left: 52px;
}

html[dir="rtl"] .date-picker-trigger {
  right: auto;
  left: 10px;
}

html[dir="rtl"] .accordion-answer {
  padding-right: 55px;
  padding-left: 8px;
}

html[dir="rtl"] .page-technology .page-hero-media {
  inset: 28px auto 28px 28px;
}

html[dir="rtl"] .hero {
  direction: ltr;
  text-align: right !important;
}

html[dir="rtl"] .hero-copy {
  direction: rtl;
}

html[dir="rtl"] .hero-copy,
html[dir="rtl"] .hero-copy > *,
html[dir="rtl"] .hero-copy #hero-title-typewriter .line-1,
html[dir="rtl"] .hero-copy #hero-title-typewriter .line-2,
html[dir="rtl"] .printing-copy,
html[dir="rtl"] .feature-card-wrap,
html[dir="rtl"] .feature-card-content,
html[dir="rtl"] .proof-card-info {
  text-align: right !important;
}

html[dir="rtl"] .printing-copy {
  align-items: flex-start;
}

html[dir="rtl"] .feature-card-wrap {
  border-right: 0;
  border-left: 1px solid rgba(214, 243, 255, 0.09);
}

html[dir="rtl"] .feature-card-wrap:last-child {
  border-left: 0 !important;
}

html[dir="rtl"] .service-card-link svg {
  transform: scaleX(-1);
}

/* Use LTR scroll geometry for consistent JS controls, then restore RTL in cards. */
html[dir="rtl"] .journey-slider-track,
html[dir="rtl"] .team-track,
html[dir="rtl"] .reviews-track {
  direction: ltr;
}

html[dir="rtl"] .journey-slide,
html[dir="rtl"] .doctor,
html[dir="rtl"] .review-card {
  direction: rtl;
  text-align: right;
}

html[dir="rtl"] a[href^="tel:"],
html[dir="rtl"] a[href^="mailto:"],
html[dir="rtl"] .contact-lines {
  unicode-bidi: plaintext;
}

@media (max-width: 1040px) {
  html[dir="rtl"] .menu-toggle {
    margin-right: auto;
    margin-left: 0;
  }

  html[dir="rtl"] .nav-service-toggle {
    text-align: right;
  }

  html[dir="rtl"] .nav-service-toggle > span {
    margin-right: 16px;
    margin-left: 0;
  }

  html[dir="rtl"] .nav-dropdown,
  html[dir="rtl"] .nav-mega {
    right: auto;
    left: auto;
  }

  .subpage-nav .nav-language {
    align-self: flex-start;
    min-width: 52px;
    margin-block: 4px;
  }
}

@media (max-width: 760px) {
  html[dir="rtl"] .page-hero h1 {
    max-width: 16ch;
    font-size: clamp(36px, 10.5vw, 52px);
    line-height: 1.2;
  }

  html[dir="rtl"] .page-technology .page-hero-media {
    inset: 20px auto 20px 20px;
  }

  html[dir="rtl"] .accordion-answer {
    padding-right: 45px;
    padding-left: 8px;
  }
}

/* Arabic UI/UX revision: shared RTL composition, readable type, and touch behavior. */
html[dir="rtl"] .home-page-header.site-header {
  position: sticky !important;
  inset: 0 0 auto !important;
  z-index: 100;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 max(20px, calc((100vw - 1260px) / 2)) !important;
  border-bottom: 1px solid rgba(143, 255, 226, 0.14) !important;
  background: rgba(0, 3, 10, 0.92) !important;
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

html[dir="rtl"] .subpage-nav .nav-language,
html[dir="rtl"] .subpage-nav .nav-book {
  min-height: 44px;
}

html[dir="rtl"] .page-breadcrumb,
html[dir="rtl"] .nav-service-heading,
html[dir="rtl"] .gallery-case-number,
html[dir="rtl"] .gallery-label,
html[dir="rtl"] .testimonial-title,
html[dir="rtl"] .contact-detail-label,
html[dir="rtl"] .contact-detail-kind,
html[dir="rtl"] .media-placeholder span,
html[dir="rtl"] .accordion-index,
html[dir="rtl"] .controls-hint,
html[dir="rtl"] .service-card-link,
html[dir="rtl"] .review-stars,
html[dir="rtl"] .reviews-summary-stars {
  letter-spacing: 0;
  text-transform: none;
}

/* The Arabic home composition places copy on the right and the patient on the left. */
html[dir="rtl"] .hero {
  direction: rtl;
  text-align: right !important;
}

html[dir="rtl"] .hero-background-video {
  object-position: center;
  transform: scaleX(-1);
}

html[dir="rtl"] .hero-video-overlay {
  background:
    linear-gradient(90deg, rgba(2, 12, 22, 0.04) 0%, rgba(2, 12, 22, 0.16) 28%, rgba(2, 12, 22, 0.54) 56%, rgba(2, 12, 22, 0.76) 100%),
    linear-gradient(180deg, rgba(2, 12, 22, 0.03), rgba(2, 12, 22, 0.2));
}

html[dir="rtl"] .hero-copy,
html[dir="rtl"] .hero-copy > *,
html[dir="rtl"] .hero-copy #hero-title-typewriter .line-1,
html[dir="rtl"] .hero-copy #hero-title-typewriter .line-2 {
  text-align: right !important;
}

html[dir="rtl"] .hero-copy,
html[dir="rtl"] .hero-copy #hero-title-typewriter {
  align-items: flex-start !important;
}

html[dir="rtl"] .hero-copy #hero-title-typewriter .line-1,
html[dir="rtl"] .hero-copy #hero-title-typewriter .line-2 {
  letter-spacing: 0;
  line-height: 1.22;
}

html[dir="rtl"] .hero-lead {
  line-height: 1.85;
}

html[dir="rtl"] .hero-actions,
html[dir="rtl"] .hero-signals {
  justify-content: flex-start !important;
}

html[dir="rtl"] .journey-counter {
  direction: ltr;
  unicode-bidi: isolate;
}

html[dir="rtl"] .journey-controls .slider-btn svg {
  transform: scaleX(-1);
}

html[dir="rtl"] .team .team-track,
html[dir="rtl"] .page-type-team .team-track,
html[dir="rtl"] .google-reviews .reviews-track {
  direction: rtl;
}

html[dir="rtl"] .team-track .doctor,
html[dir="rtl"] .google-reviews .review-card {
  direction: rtl;
  text-align: right;
}

html[dir="rtl"] .team-track .doctor {
  padding: 18px 24px 18px 12px !important;
}

html[dir="rtl"] .services .service-card:hover .service-card-link svg,
html[dir="rtl"] .services .service-card:focus-visible .service-card-link svg {
  transform: scaleX(-1) translateX(3px);
}

/* Restore the intended compact/ambient hero after the generic RTL background layer. */
html[dir="rtl"] .page-hero.page-hero-compact.page-hero-ambient {
  background-image:
    radial-gradient(circle at 16% 48%, rgba(74, 167, 255, 0.17), transparent 34%),
    linear-gradient(225deg, rgba(7, 23, 43, 0.92) 0%, rgba(2, 8, 20, 0.72) 70%);
}

html[dir="rtl"] .page-hero-overlay,
html[dir="rtl"] .page-hero-compact .page-hero-overlay {
  background:
    linear-gradient(90deg, transparent 16%, rgba(0, 3, 10, 0.62) 100%),
    linear-gradient(180deg, rgba(0, 3, 10, 0.06), rgba(0, 3, 10, 0.64));
}

html[dir="rtl"] .page-hero-diagnostic {
  inset: 0 auto 0 0;
  -webkit-mask-image: linear-gradient(90deg, #000 0%, rgba(0, 0, 0, 0.68) 56%, transparent 100%);
  mask-image: linear-gradient(90deg, #000 0%, rgba(0, 0, 0, 0.68) 56%, transparent 100%);
}

html[dir="rtl"] .page-hero h1 {
  line-height: 1.28;
  text-wrap: balance;
}

html[dir="rtl"] .page-hero-content > p,
html[dir="rtl"] .page-breadcrumb {
  line-height: 1.7;
}

html[dir="rtl"] .page-technology .page-hero-compact {
  min-height: clamp(260px, 30vw, 380px);
}

/* Migrated text widgets now use one spacing system and Arabic-aware leading. */
html[dir="rtl"] .content-column {
  gap: clamp(20px, 2.4vw, 30px);
}

html[dir="rtl"] .content-widget + .content-widget {
  margin-top: 0;
}

html[dir="rtl"] .content-copy h2,
html[dir="rtl"] .content-copy h3,
html[dir="rtl"] .content-copy h4,
html[dir="rtl"] .content-copy h5,
html[dir="rtl"] .content-copy h6 {
  max-width: 24ch;
  letter-spacing: 0;
}

html[dir="rtl"] .content-copy h2 {
  font-size: clamp(32px, 3.5vw, 50px);
  line-height: 1.38;
}

html[dir="rtl"] .content-copy h3 {
  font-size: clamp(25px, 2.65vw, 37px);
  line-height: 1.45;
}

html[dir="rtl"] .content-copy h4 {
  font-family: "Thmanyah Serif Display", Manrope, "Avenir Next", sans-serif;
  line-height: 1.55;
}

html[dir="rtl"] .content-copy p,
html[dir="rtl"] .content-copy li,
html[dir="rtl"] .content-copy blockquote,
html[dir="rtl"] .content-copy td,
html[dir="rtl"] .content-copy th {
  font-size: clamp(15.5px, 1.2vw, 17.5px);
  line-height: 1.92;
}

html[dir="rtl"] .content-copy p + p {
  margin-top: 1.05em;
}

html[dir="rtl"] .page-about [data-source-section="2"] .content-widget-feature li {
  padding: 17px 28px 17px 8px;
}

html[dir="rtl"] .page-about [data-source-section="2"] .content-widget-feature li::before {
  right: 4px;
  left: auto;
}

html[dir="rtl"] .testimonial-overlay {
  background:
    linear-gradient(90deg, rgba(0, 3, 10, 0.7), rgba(0, 3, 10, 0.94)),
    radial-gradient(circle at 20% 20%, rgba(74, 167, 255, 0.2), transparent 32%);
}

html[dir="rtl"] .testimonial-shell {
  margin-right: 0;
  margin-left: auto;
  text-align: right;
}

html[dir="rtl"] .testimonial-quote {
  font-family: "Thmanyah Serif Display", Manrope, "Avenir Next", sans-serif;
  font-size: clamp(27px, 3.4vw, 48px);
  line-height: 1.65;
}

.testimonial-controls > button,
.testimonial-dots button {
  min-width: 44px;
  min-height: 44px;
}

html[dir="rtl"] .gallery-label {
  right: 18px;
  left: auto;
}

/* Contact information, form affordances, and mixed-direction data. */
.touch-target,
.date-picker-trigger {
  min-width: 44px;
  min-height: 44px;
}

.form-label-text {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.form-field-note {
  color: #8fa3b8;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.4;
}

.appointment-form label:has([required]) .form-field-note {
  color: #8fffe2;
}

.date-field {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.date-field > label {
  display: block;
}

html[dir="rtl"] .date-input-control input {
  padding-right: 16px;
  padding-left: 64px;
}

html[dir="rtl"] .date-picker-trigger {
  left: 6px;
}

.appointment-form input[type="date"]::-webkit-calendar-picker-indicator {
  opacity: 0;
  pointer-events: none;
}

html[dir="rtl"] .appointment-form input[type="tel"],
html[dir="rtl"] .appointment-form input[type="email"],
html[dir="rtl"] .appointment-form input[type="date"] {
  direction: ltr;
  text-align: left;
}

html[dir="rtl"] bdi,
html[dir="rtl"] time {
  direction: ltr;
  unicode-bidi: isolate;
}

a.contact-detail-row,
.contact-socials a,
.contact-map > a {
  min-height: 44px;
}

a.contact-detail-row {
  padding-block: 2px;
}

.contact-socials a {
  align-items: center;
  padding-block: 6px;
}

html[dir="rtl"] .contact-detail-kind {
  font-size: 11px;
  line-height: 1.55;
}

html[dir="rtl"] .working-hours-card li {
  font-size: 14px;
  line-height: 1.7;
}

html[dir="rtl"] .working-hours-card time {
  direction: ltr;
  unicode-bidi: isolate;
}

html[dir="rtl"] .footer-socials a,
html[dir="rtl"] .contact-lines a {
  min-height: 44px;
}

@media (min-width: 1041px) and (max-width: 1200px) {
  html[dir="rtl"] .nav-mega {
    right: auto;
    left: 50%;
    transform: translateX(-50%);
  }
}

@media (max-width: 760px) {
  html[dir="rtl"] .home-page-header.site-header {
    width: 100% !important;
    margin: 0 !important;
    padding-inline: 16px !important;
  }

  html[dir="rtl"] .home-page-header .subpage-nav {
    right: 0;
    left: 0;
  }

  html[dir="rtl"] .hero {
    min-height: 630px !important;
    padding: 38px 22px !important;
  }

  html[dir="rtl"] .hero-background-video {
    object-position: center;
  }

  html[dir="rtl"] .hero-video-overlay {
    background:
      linear-gradient(90deg, rgba(2, 12, 22, 0.1) 0%, rgba(2, 12, 22, 0.26) 34%, rgba(2, 12, 22, 0.72) 76%, rgba(2, 12, 22, 0.88) 100%),
      linear-gradient(180deg, rgba(2, 12, 22, 0.1), rgba(2, 12, 22, 0.36));
  }

  html[dir="rtl"] .hero-copy #hero-title-typewriter .line-1,
  html[dir="rtl"] .hero-copy #hero-title-typewriter .line-2 {
    font-size: clamp(42px, 12.5vw, 52px) !important;
    line-height: 1.28 !important;
  }

  html[dir="rtl"] .page-hero.page-hero-compact.page-hero-ambient {
    background-image:
      radial-gradient(circle at 8% 26%, rgba(74, 167, 255, 0.16), transparent 42%),
      linear-gradient(215deg, rgba(7, 23, 43, 0.94), rgba(2, 8, 20, 0.78));
  }

  html[dir="rtl"] .page-hero-compact .page-hero-overlay {
    background:
      linear-gradient(90deg, rgba(0, 3, 10, 0.14), rgba(0, 3, 10, 0.86) 88%),
      linear-gradient(180deg, rgba(0, 3, 10, 0.12), rgba(0, 3, 10, 0.66));
  }

  html[dir="rtl"] .page-hero-diagnostic {
    width: 94%;
    opacity: 0.38;
    transform: translateX(-22%);
    -webkit-mask-image: linear-gradient(90deg, #000 0%, rgba(0, 0, 0, 0.7) 48%, transparent 100%);
    mask-image: linear-gradient(90deg, #000 0%, rgba(0, 0, 0, 0.7) 48%, transparent 100%);
  }

  html[dir="rtl"] .page-technology .page-hero-compact {
    min-height: 320px;
  }

  html[dir="rtl"] .content-section,
  html[dir="rtl"] .gallery-section,
  html[dir="rtl"] .contact-details-section {
    padding: 58px 18px;
  }

  html[dir="rtl"] .content-grid {
    gap: 32px;
  }

  html[dir="rtl"] .content-copy h2 {
    font-size: clamp(30px, 9.8vw, 42px);
    line-height: 1.42;
  }

  html[dir="rtl"] .content-copy h3 {
    line-height: 1.5;
  }

  html[dir="rtl"] .gallery-pair {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  html[dir="rtl"] .gallery-label {
    top: 8px;
    right: 8px;
    min-height: 28px;
    padding-inline: 8px;
    font-size: 10px;
  }

  html[dir="rtl"] .testimonial-quote {
    font-size: clamp(25px, 7.8vw, 36px);
  }

  html[dir="rtl"] .working-hours-card li {
    align-items: flex-start;
    font-size: 14px;
  }
}

/* Keep before/after comparisons paired on small screens. */
@media (max-width: 760px) {
  .page-type-gallery .gallery-pair {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .page-type-gallery .gallery-label {
    top: 8px;
    min-height: 28px;
    padding-inline: 8px;
    font-size: 10px;
  }
}

/* Thmanyah is the complete Arabic typography system, including the homepage. */
html[lang="ar"] body,
html[lang="ar"] body :where(*) {
  font-family: "Thmanyah Serif Display", Manrope, "Avenir Next", sans-serif;
}
